Skip to contentSkip to conversation

Staging: lirc: fix PTR_ERR() check

PATCH In review Dan Carpenter 2 participants 2 messages Oct 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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().

drivers/staging/lirc/lirc_sasem.c +1 -1
index d1ac099..2e681cf 100644
@@ -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;
 	}