[media] drx-j: Be sure that all allocated data are properly initialized
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 18 Jan 2014 14:12:46 +0000 (11:12 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Mar 2014 17:31:21 +0000 (14:31 -0300)
commit782ae20df2af894c6840cb2da1221b28dcf3e969
tree94447a4b6f84fa69fb00f49060c02a1f337aea96
parent29b93d8f9ca0635281a6c27f778355caacfc59be
[media] drx-j: Be sure that all allocated data are properly initialized

The state struct is allocated without cleaning the memory.
This causes random bugs.

Clean it, and move the memcpy functions just below each kalloc,
to be clearer that all those data are properly filled.

Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/drx39xyj/drx39xxj.c