1
0
Fork 0

char/pcmcia: add some error checking in scr24x_read()

The "ret = " assignment seems to have accidentally been left off.

Fixes: f2ed287bcc ("char/pcmcia: add scr24x_cs chip card interface driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Dan Carpenter 2016-11-24 13:46:23 +03:00 committed by Greg Kroah-Hartman
parent 7f1a5f044e
commit 999e4bf1d7
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ static ssize_t scr24x_read(struct file *filp, char __user *buf, size_t count,
ret = -EIO;
goto out;
}
read_chunk(dev, CCID_HEADER_SIZE, len);
ret = read_chunk(dev, CCID_HEADER_SIZE, len);
if (ret < 0)
goto out;