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>
Fri, 14 Jun 2019 22:27:08 +0000 (00:27 +0200)
commit8386f975a9ce80d44c621bf20e87162efbad1e1a
tree0fd07612f517c14a322edffbe9a1546950309d8b
parentf96fbf03281a69dc48cfea90044b21e30c15b7c7
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]