Re: [PATCH -next] mtd: spinand: Fix error return code in spinand_init()

2018-07-08 Thread Miquel Raynal
Hi Wei, Wei Yongjun wrote on Wed, 4 Jul 2018 08:34:58 +: > Fix to return error code -ENOMEM from the kzalloc() error handling > case instead of 0, as done elsewhere in this function. > > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI > NANDs") > Signed-off-by: Wei

Re: [PATCH -next] mtd: spinand: Fix error return code in spinand_init()

2018-07-08 Thread Miquel Raynal
Hi Wei, Wei Yongjun wrote on Wed, 4 Jul 2018 08:34:58 +: > Fix to return error code -ENOMEM from the kzalloc() error handling > case instead of 0, as done elsewhere in this function. > > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI > NANDs") > Signed-off-by: Wei

Re: [PATCH -next] mtd: spinand: Fix error return code in spinand_init()

2018-07-04 Thread Boris Brezillon
On Wed, 4 Jul 2018 08:34:58 + Wei Yongjun wrote: > Fix to return error code -ENOMEM from the kzalloc() error handling > case instead of 0, as done elsewhere in this function. > > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI > NANDs") > Signed-off-by: Wei Yongjun

Re: [PATCH -next] mtd: spinand: Fix error return code in spinand_init()

2018-07-04 Thread Boris Brezillon
On Wed, 4 Jul 2018 08:34:58 + Wei Yongjun wrote: > Fix to return error code -ENOMEM from the kzalloc() error handling > case instead of 0, as done elsewhere in this function. > > Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI > NANDs") > Signed-off-by: Wei Yongjun

[PATCH -next] mtd: spinand: Fix error return code in spinand_init()

2018-07-04 Thread Wei Yongjun
Fix to return error code -ENOMEM from the kzalloc() error handling case instead of 0, as done elsewhere in this function. Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI NANDs") Signed-off-by: Wei Yongjun --- drivers/mtd/nand/spi/core.c | 4 +++- 1 file changed, 3

[PATCH -next] mtd: spinand: Fix error return code in spinand_init()

2018-07-04 Thread Wei Yongjun
Fix to return error code -ENOMEM from the kzalloc() error handling case instead of 0, as done elsewhere in this function. Fixes: c898e0526fb6 ("mtd: nand: Add core infrastructure to support SPI NANDs") Signed-off-by: Wei Yongjun --- drivers/mtd/nand/spi/core.c | 4 +++- 1 file changed, 3