Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 816873e ("mtd: spi-nor: parse SFDP 4-byte Address Instruction Table") Signed-off-by: Wenwen Wang <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]>
- Loading branch information