diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-09-26 12:45:21 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-02 21:01:30 +0400 |
commit | 94c15b5e6755711af6dd81bde0f8396e24b75dc2 (patch) | |
tree | 93a7da1e0a9c7ed2cca42374055e24f70b8e457b /drivers/hwmon/lineage-pem.c | |
parent | 7fb89eca0f2ad21f6e77f3411cb220ed94f340df (diff) | |
download | linux-94c15b5e6755711af6dd81bde0f8396e24b75dc2.tar.xz |
[media] s5k6aa: Fix possible NULL pointer dereference
Make sure __s5k6aa_get_crop_rect() always returns valid pointer,
as it is assumed at the callers.
crop->which is already validated when subdev set_crop and get_crop
callbacks are called from within the v4l2-core. If it ever happens
the crop operations are called directly for some reason in kernel
space, with incorrect crop->which argument, just log it with WARN
and return reference to the TRY crop.
Reported-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/hwmon/lineage-pem.c')
0 files changed, 0 insertions, 0 deletions