Commit Graph

1 Commits (3e8b66e0da1aca04867d23ca2a8dbf2042e5b45b)

Author SHA1 Message Date
Mantas Pucka 8386f975a9 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>
5 years ago