staging: ks7010: check sdio_set_block_size return value
This commit checks sdio_set_block_size function return value. If it fails abort driver initialization. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4487cf88f8
commit
31d7b1b142
|
@ -994,6 +994,9 @@ static int ks7010_sdio_probe(struct sdio_func *func,
|
|||
sdio_claim_host(func);
|
||||
|
||||
ret = sdio_set_block_size(func, KS7010_IO_BLOCK_SIZE);
|
||||
if (ret)
|
||||
goto err_free_card;
|
||||
|
||||
dev_dbg(&card->func->dev, "multi_block=%d sdio_set_block_size()=%d %d\n",
|
||||
func->card->cccr.multi_block, func->cur_blksize, ret);
|
||||
|
||||
|
|
Loading…
Reference in New Issue