-
由 Wenwen Wang 提交于
In spi_nor_parse_4bait(), 'dwords' is allocated through kmalloc(). However, it is not deallocated in the following execution if spi_nor_read_sfdp() fails, leading to a memory leak. To fix this issue, free 'dwords' before returning the error. Fixes: 816873ea ("mtd: spi-nor: parse SFDP 4-byte Address Instruction Table") Signed-off-by: NWenwen Wang <wenwen@cs.uga.edu> Signed-off-by: NTudor Ambarus <tudor.ambarus@microchip.com>
313aca5a