Re: [git:media_tree/master] media: davinci: vpif_capture: add NULL check on devm_kzalloc return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Quoting Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>:

This is an automatic generated email to let you know that the following patch were queued:

Subject: media: davinci: vpif_capture: add NULL check on devm_kzalloc return value
Author:  Gustavo A. R. Silva <garsilva@xxxxxxxxxxxxxx>
Date:    Wed Nov 22 22:34:44 2017 -0500

Check return value from call to devm_kzalloc() in order to prevent
a NULL pointer dereference.

This issue was detected with the help of Coccinelle.

Fixes: 4a5f8ae50b66 ("[media] davinci: vpif_capture: get subdevs from DT when available")

Signed-off-by: Gustavo A. R. Silva <garsilva@xxxxxxxxxxxxxx>
Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx>
Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>


Thank you, Hans and Mauro for reviewing my patches.

I wonder if the following patch managed to resolved the use-after-free bug:

https://patchwork.linuxtv.org/patch/45391/

Thanks!
--
Gustavo A. R. Silva







[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux