summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/drx39xyj/Makefile
diff options
context:
space:
mode:
authorShuah Khan <shuah.kh@samsung.com>2014-02-28 18:23:02 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-04 14:41:29 -0300
commit1ad77b5c29b19c633afaaabf268acedca79aa818 (patch)
tree539d36ac220c3e6387d28cd8e0c87ba6e69c247f /drivers/media/dvb-frontends/drx39xyj/Makefile
parent546ef6bf2517ae5c57fd4afc9129a0c79ea83bdf (diff)
downloadblackbird-op-linux-1ad77b5c29b19c633afaaabf268acedca79aa818.tar.gz
blackbird-op-linux-1ad77b5c29b19c633afaaabf268acedca79aa818.zip
[media] drx-j: fix boot failure due to null pointer dereference
DJH_DEBUG only code path in drxbsp_i2c_write_read() dereferences w_dev_addr and subsequently w_dev_addr->user_data->i2c which results in failure during boot. This patch fixes the null pointer derefence bug as well as the following compile errors: LD arch/x86/built-in.o CC drivers/media/dvb-frontends/drx39xyj/drxj.o drivers/media/dvb-frontends/drx39xyj/drxj.c: In function ‘drxbsp_i2c_write_read’: drivers/media/dvb-frontends/drx39xyj/drxj.c:1558:25: error: redeclaration of ‘state’ with no linkage struct drx39xxj_state *state = w_dev_addr->user_data; ^ drivers/media/dvb-frontends/drx39xyj/drxj.c:1512:25: note: previous declaration of ‘state’ was here struct drx39xxj_state *state; ^ drivers/media/dvb-frontends/drx39xyj/drxj.c:1558:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] struct drx39xxj_state *state = w_dev_addr->user_data; ^ drivers/media/dvb-frontends/drx39xyj/drxj.c:1560:17: error: redeclaration of ‘msg’ with no linkage struct i2c_msg msg[2] = { ^ drivers/media/dvb-frontends/drx39xyj/drxj.c:1513:17: note: previous declaration of ‘msg’ was here struct i2c_msg msg[2]; ^ Signed-off-by: Shuah Khan <shuah.kh@samsung.com> Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/drx39xyj/Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud