Skip to content

Commit

Permalink
usb: yurex: fixed sparse warning of incorrect type
Browse files Browse the repository at this point in the history
fixed sparse warning of
	1) incorrect type (different address spaces)
	2) incorrect type in initializer

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sudip Mukherjee authored and Greg Kroah-Hartman committed Nov 3, 2014
1 parent e50a322 commit 1cc373c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/usb/misc/yurex.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ static int yurex_release(struct inode *inode, struct file *file)
return 0;
}

static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t *ppos)
static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count,
loff_t *ppos)
{
struct usb_yurex *dev;
int retval = 0;
Expand Down Expand Up @@ -444,7 +445,8 @@ static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t
return retval;
}

static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t count, loff_t *ppos)
static ssize_t yurex_write(struct file *file, const char __user *user_buffer,
size_t count, loff_t *ppos)
{
struct usb_yurex *dev;
int i, set = 0, retval = 0;
Expand Down

0 comments on commit 1cc373c

Please sign in to comment.