diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2015-01-11 14:07:20 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-01-16 04:33:03 +0100 |
commit | 526789fc532a445975b60885a65d3cea5bfa6391 (patch) | |
tree | 0eb84eff47509421c965fe3344ae7ce12be020ec /sound/i2c | |
parent | mtd: spi-nor: fsl-qspi: support deep sleep mode for imx6 sx chip (diff) | |
download | linux-526789fc532a445975b60885a65d3cea5bfa6391.tar.xz linux-526789fc532a445975b60885a65d3cea5bfa6391.zip |
mtd: nand: ams-delta: fix overwritten mtd_info->owner in initialization
In initialization routine, mtd_info->owner is overwritten by memset()
just after being initialized. This can be fixed by moving memset() calls
to just before setting mtd_info->owner. But the memory region is allocated
by kmalloc, so we can fix it by using kzalloc instead of kmalloc.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Jonathan McDowell <noodles@earth.li>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'sound/i2c')
0 files changed, 0 insertions, 0 deletions