Files
linux/drivers
Hangyu Hua c2eecefec5 rpmsg: virtio: Fix possible double free in rpmsg_probe()
vch will be free in virtio_rpmsg_release_device() when
rpmsg_ns_register_device() fails. There is no need to call kfree() again.

Fix this by changing error path from free_vch to free_ctrldev.

Fixes: c486682ae1 ("rpmsg: virtio: Register the rpmsg_char device")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Tested-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20220426060536.15594-2-hbh25y@gmail.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2022-04-26 09:23:41 -06:00
..
2022-04-08 19:50:44 +02:00
2022-04-06 13:07:53 -06:00
2022-04-06 08:47:52 -06:00
2022-03-30 16:17:54 -07:00
2022-04-08 12:59:43 -07:00
2022-04-04 17:03:04 +02:00
2022-03-27 22:18:39 +02:00
2022-03-18 19:00:26 +01:00