commit | 533d00b1e89aff85091b4e9ddf4fce7db2c7ed49 | [log] [tgz] |
---|---|---|
author | Petar Sivenov <psiven@codeaurora.org> | Wed Apr 08 12:52:04 2015 +0300 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Jun 03 00:48:14 2015 -0700 |
tree | 2acda555854594b90cdc0531d787c9e03ffb6ab2 | |
parent | f5839d7c64845d2941c64194434675bd840e3216 [diff] |
msm: camera: isp: protect driver from using invalid bufq Userspace can call some ioctls with 0 value for bufq_handle which is currently can bypass checks in msm_isp_get_bufq and will result in using uninitialized bufq structure, even though 0 is not a legitimate value for bufq_handle. This change adds a check to prevent this behaviour and to return error in case it happens. Change-Id: I6422ec82671080cfa62fc43026b6cc33261cf11c Signed-off-by: Petar Sivenov <psiven@codeaurora.org>