media: v4l2: tegra: fixing memory access oops in tegra camera driver
authorBryan Wu <pengw@nvidia.com>
Wed, 9 Jan 2013 18:29:55 +0000 (10:29 -0800)
committerMatthew Pedro <mapedro@nvidia.com>
Mon, 14 Jan 2013 18:35:40 +0000 (10:35 -0800)
commit185f345ed930377d945397b2b710bf62d91f5fa4
tree6bc768f5c36d916a08ba6a4720f3c2e73b76b446
parent511d59ce01b5dfab121f0d3c9badd00283b4f83e
media: v4l2: tegra: fixing memory access oops in tegra camera driver

Function pointer int (*queue_setup)() of struct vb2_ops in
include/media/videobuf2-core.h is not compatible with our function
call tegra_camera_videobuf_setup(). So building will generate warning
and it will cause alloc_ctxs[] with wrong value, then introduce
memory access oops later.

Bug 1215617

Change-Id: I5d49ccd611a9435a5ee3b21e344bc0b5464ba747
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/190036
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/media/video/tegra_v4l2_camera.c