projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcbf77b
)
Staging: lirc: fix PTR_ERR() check
author
Dan Carpenter
<error27@gmail.com>
Fri, 15 Oct 2010 03:42:35 +0000
(
05:42
+0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 15 Oct 2010 19:24:39 +0000
(12:24 -0700)
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>
drivers/staging/lirc/lirc_sasem.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/lirc/lirc_sasem.c
b/drivers/staging/lirc/lirc_sasem.c
index d1ac0997f51b08a26b9b15e537dd6cefe9b1a1f6..2e681cf3e85da8a957624467ff7d8c25feb605d2 100644
(file)
--- a/
drivers/staging/lirc/lirc_sasem.c
+++ b/
drivers/staging/lirc/lirc_sasem.c
@@
-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;
}