diff options
| author | Laurent Pinchart <[email protected]> | 2011-04-07 13:30:14 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2011-04-19 11:29:56 -0300 |
| commit | 2578dfb7f767076baf04eaf5fbf35a75afb9a1a7 (patch) | |
| tree | 72dd9590490c76472c9a518249c219b91a4008ec /lib/flex_array.c | |
| parent | c4f0b78ad5d0e76caaeb5c2349c2613728c816bc (diff) | |
[media] omap3isp: queue: Don't corrupt buf->npages when get_user_pages() fails
get_user_pages() can return a negative error code when it fails. Set
buf->npages to 0 in that case, to prevent isp_video_buffer_cleanup()
from releasing invalid pages.
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions