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:55:32 +0000 (19:55 +0200)
commit7193067edb76d80ab3f52a39c4b083b3839b0cda
tree41cb36034ee0028024c23ce2ff238dd5a7ce96dc
parent28baaaae82155e7fc695789dd0a807cc2f298be8
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]