RE: [PATCH] media: cxd2880-spi: fix probe when dvb_attach fails

2018-11-12 Thread Yasunari.Takiguchi
vger.kernel.org; > linux-ker...@vger.kernel.org > Subject: [PATCH] media: cxd2880-spi: fix probe when dvb_attach fails > > When dvb_attach fails, probe returns 0, and remove crashes afterwards. > This patch sets the return value to -ENODEV when attach fails. > > Fixes: bd

[PATCH] media: cxd2880-spi: fix probe when dvb_attach fails

2018-11-08 Thread Neil Armstrong
When dvb_attach fails, probe returns 0, and remove crashes afterwards. This patch sets the return value to -ENODEV when attach fails. Fixes: bd24fcddf6b8 ("media: cxd2880-spi: Add support for CXD2880 SPI interface") Signed-off-by: Neil Armstrong --- drivers/media/spi/cxd2880-spi.c | 1 + 1 file