Skip to content

Commit

Permalink
[media] Fix the negative -E{BLAH} returns from fops_read
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Hurlbut <gjhurlbu@gmail.com>
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Gavin Hurlbut authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent f89076c commit f20a07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/saa7164/saa7164-encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ static ssize_t fops_read(struct file *file, char __user *buffer,
struct saa7164_port *port = fh->port;
struct saa7164_user_buffer *ubuf = NULL;
struct saa7164_dev *dev = port->dev;
unsigned int ret = 0;
int ret = 0;
int rem, cnt;
u8 *p;

Expand Down

0 comments on commit f20a07d

Please sign in to comment.