public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] rpmsg: virtio: fix posseble double free
@ 2022-04-26  6:05 Hangyu Hua
  2022-04-26  6:05 ` [PATCH v2 1/3] rpmsg: virtio: fix possible double free in rpmsg_probe() Hangyu Hua
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hangyu Hua @ 2022-04-26  6:05 UTC (permalink / raw)
  To: bjorn.andersson, mathieu.poirier, arnaud.pouliquen
  Cc: linux-remoteproc, linux-kernel, Hangyu Hua

There are double free in rpmsg_probe() and rpmsg_virtio_add_ctrl_dev().
In addition, rpmsg_virtio_del_ctrl_dev() didn't use correct function
to free the object.

v2:
Use a cover letter to integrate the three patches.
Add comments in rpmsg_probe() and rpmsg_virtio_add_ctrl_dev().


Hangyu Hua (2):
  rpmsg: virtio: fix possible double free in rpmsg_probe()
  rpmsg: virtio: fix possible double free in rpmsg_virtio_add_ctrl_dev()
Arnaud Pouliquen (1):
  rpmsg: virtio: Fix the unregistration of the device rpmsg_ctrl

 drivers/rpmsg/virtio_rpmsg_bus.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-27 14:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-26  6:05 [PATCH v2 0/3] rpmsg: virtio: fix posseble double free Hangyu Hua
2022-04-26  6:05 ` [PATCH v2 1/3] rpmsg: virtio: fix possible double free in rpmsg_probe() Hangyu Hua
2022-04-26  6:05 ` [PATCH v2 2/3] rpmsg: virtio: fix possible double free in rpmsg_virtio_add_ctrl_dev() Hangyu Hua
2022-04-26  6:05 ` [PATCH v2 3/3] rpmsg: virtio: Fix the unregistration of the device rpmsg_ctrl Hangyu Hua
2022-04-26 16:56   ` Mathieu Poirier
2022-04-27  2:50     ` Hangyu Hua
2022-04-27 14:37       ` Mathieu Poirier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox