]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit12e86e5219a6d502c82299eb02548300c79e41b7
tree94447a4b6f84fa69fb00f49060c02a1f337aea96
parente91f92a0fb862fbb4dbf9b11e211ff66ac0c895e
[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