kernel: mt29f_spinand: fix memory leak during page program
authorMantas Pucka <mantas@8devices.com>
Tue, 11 Jun 2019 14:08:48 +0000 (17:08 +0300)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 15 Jun 2019 17:05:30 +0000 (19:05 +0200)
commit85eda6f61e53c2ac6bc1a7a0f64813153df8fbb3
treec3fcd97c76c3d670d628dcba1944f63c061e643d
parenta0543d8e702b36eab39df24a09a94ccbae864256
kernel: mt29f_spinand: fix memory leak during page program

Memory is allocated with devm_kzalloc() on every page program
and leaks until device is closed (which never happens).

Convert to kzalloc() and handle error paths manually.

Signed-off-by: Mantas Pucka <mantas@8devices.com>
target/linux/generic/hack-4.14/400-mt29f_spinand-fix-memleak.patch [new file with mode: 0644]