]> git.baikalelectronics.ru Git - kernel.git/commit
media: usbvision: fix a potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Sat, 9 Mar 2019 07:42:26 +0000 (02:42 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 29 Mar 2019 11:42:56 +0000 (07:42 -0400)
commitfecff5e3b7cb600f31e409254d038ba5dc2598a0
treef58d15f180a2c6a99146e0eb7cc16990254f8c13
parent5fdb43a75644ecbb7809f47981a153519dbcafc0
media: usbvision: fix a potential NULL pointer dereference

In case usb_alloc_coherent fails, the fix returns -ENOMEM to
avoid a potential NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/usbvision/usbvision-core.c