mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
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>
This commit is contained in:
parent
7f1a5f044e
commit
999e4bf1d7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user