Staging: lirc: fix PTR_ERR() check
Subsystems (2)
PATCH 1/1 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 <[email protected]>
drivers/staging/lirc/lirc_sasem.c +1 -1
@@ -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; }
Quoted 3 lines · Dan Carpenter
This is a typo. It's supposed to be
IS_ERR()here instead ofPTR_ERR().Signed-off-by Dan Carpenter <[email protected]>
Acked-by Jarod Wilson <[email protected]>
Signature · 2 lines
Jarod Wilson [email protected]