author | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Sat, 29 Mar 2014 13:28:41 +0000 (18:58 +0530) | ||
committer | Sundar Raman <sunds@ti.com> | |
Thu, 10 Apr 2014 00:57:37 +0000 (19:57 -0500) | ||
commit | a781ffba34df785f0242f8fbc03c2fed75efb81f | |
tree | c3ca7bd57117fa1d04d23b834464d7215a086f70 | tree | snapshot (tar.xz tar.gz zip) |
parent | 0ab5a352d4fedbb0d0741c4d323f9ad6ebba9bab | commit | diff |
v4l: ti-vps: 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.
Change-Id: I4268208cad5933db1e7239b2fb732a5660d4f146
Signed-off-by: Nikhil Devshatwar <nikhil.nd@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.
Change-Id: I4268208cad5933db1e7239b2fb732a5660d4f146
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
drivers/media/platform/ti-vps/vpe.c | diff | blob | history |