[PATCH] Fix Oops in MXB driver (v4l2 subsystem)
commit7a81513e6cba3f255c0ac8a31480c9770fe83b0d
authorMichael Hunold <hunold@linuxtv.org>
Mon, 4 Apr 2005 01:05:31 +0000 (3 18:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 4 Apr 2005 01:05:31 +0000 (3 18:05 -0700)
treea840f45cd831eea3625df021234b0c474481454e
parent1f7abe86ce081437353b6f765e82f2eed1337427
[PATCH] Fix Oops in MXB driver (v4l2 subsystem)

This fixes a NULL pointer dereference Oops in my "Multimedia eXtension
Board" driver.

The tda9840 i2c driver dereferences the argument pointer, but the MXB
driver is supplying a NULL pointer for one of the commands.  The patch
makes this one command behave like the others, ie.  it expects an int
argument.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/mxb.c
drivers/media/video/tda9840.c