author | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Wed, 3 Dec 2014 18:47:58 +0000 (12:47 -0600) | ||
committer | Jyri Sarha <jsarha@ti.com> | |
Fri, 5 Dec 2014 14:04:48 +0000 (16:04 +0200) | ||
commit | d462a667c90b2f3170bf25dcbe28bcf8b000100d | |
tree | bf9e9c9fb7e749dc14be1de5f01a71af96643425 | tree | snapshot (tar.xz tar.gz zip) |
parent | 4bf6183c9073c2ffdfc54689393097401f6b5318 | commit | diff |
v4l: 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: Jyri Sarha <jsarha@ti.com>
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: Jyri Sarha <jsarha@ti.com>
drivers/media/platform/ti-vpe/vpe.c | diff | blob | history |