mirror of https://gitee.com/openkylin/linux.git
Staging: lirc: fix PTR_ERR() check
This is a typo. It's supposed to be IS_ERR() here instead of PTR_ERR(). Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
fcbf77bf87
commit
79e7c561ae
|
@ -386,7 +386,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
|
||||||
}
|
}
|
||||||
|
|
||||||
data_buf = memdup_user(buf, n_bytes);
|
data_buf = memdup_user(buf, n_bytes);
|
||||||
if (PTR_ERR(data_buf)) {
|
if (IS_ERR(data_buf)) {
|
||||||
retval = PTR_ERR(data_buf);
|
retval = PTR_ERR(data_buf);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue