OpenCloudOS-Kernel/drivers/media/platform/ti-vpe
Nikhil Devshatwar 072915b57a [media] media: ti-vpe: vpe: Return NULL for invalid buffer type
get_q_data can be called with different values for type
e.g. vpe_try_crop calls it with the buffer type which gets passed
from user space

Framework doesn't check wheather its correct type or not
If user space passes wrong type, kernel should not crash.
Return NULL when the passed type is invalid.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-11-22 07:03:34 -02:00
..
Makefile [media] media: ti-vpe: vpdma: Make vpdma library into its own module 2016-11-22 06:24:25 -02:00
cal.c [media] media: platform: ti-vpe: call of_node_put on non-null pointer 2016-11-18 14:23:33 -02:00
cal_regs.h [media] media: ti-vpe: Add CAL v4l2 camera capture driver 2016-02-01 08:45:26 -02:00
csc.c [media] ti-vpe: fix sparse warnings 2014-11-05 09:09:26 -02:00
csc.h [media] v4l: ti-vpe: Add helper to perform color conversion 2014-01-07 06:57:08 -02:00
sc.c [media] ti-vpe: fix sparse warnings 2014-11-05 09:09:26 -02:00
sc.h [media] v4l: ti-vpe: enable basic scaler support 2014-01-07 06:55:35 -02:00
sc_coeff.h [media] v4l: ti-vpe: support loading of scaler coefficients 2014-01-07 06:54:48 -02:00
vpdma.c [media] media: ti-vpe: vpdma: Add helper to set a background color 2016-11-22 06:27:01 -02:00
vpdma.h [media] media: ti-vpe: vpdma: Add helper to set a background color 2016-11-22 06:27:01 -02:00
vpdma_priv.h [media] media: ti-vpe: vpdma: Fix bus error when vpdma is writing a descriptor 2016-11-22 06:27:30 -02:00
vpe.c [media] media: ti-vpe: vpe: Return NULL for invalid buffer type 2016-11-22 07:03:34 -02:00
vpe_regs.h [media] v4l: ti-vpe: create a color space converter block library 2014-01-07 06:56:18 -02:00