summaryrefslogtreecommitdiffstats
path: root/drivers/char/pcmcia
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-11-24 13:46:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-29 20:43:12 +0100
commit999e4bf1d736611b84b6b695531ce29b9319241f (patch)
tree5c9693fc53320cdce35d0a98c225ac8f89807887 /drivers/char/pcmcia
parent7f1a5f044e27838a94a252b0e038a0091c037535 (diff)
downloadlinux-stable-999e4bf1d736611b84b6b695531ce29b9319241f.tar.gz
linux-stable-999e4bf1d736611b84b6b695531ce29b9319241f.tar.bz2
linux-stable-999e4bf1d736611b84b6b695531ce29b9319241f.zip
char/pcmcia: add some error checking in scr24x_read()
The "ret = " assignment seems to have accidentally been left off. Fixes: f2ed287bcc90 ("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>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r--drivers/char/pcmcia/scr24x_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/scr24x_cs.c b/drivers/char/pcmcia/scr24x_cs.c
index a1de354a89a7..f6b43d9350f0 100644
--- a/drivers/char/pcmcia/scr24x_cs.c
+++ b/drivers/char/pcmcia/scr24x_cs.c
@@ -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;