Commit 79e7c561 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

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: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fcbf77bf
......@@ -386,7 +386,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
}
data_buf = memdup_user(buf, n_bytes);
if (PTR_ERR(data_buf)) {
if (IS_ERR(data_buf)) {
retval = PTR_ERR(data_buf);
goto exit;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment