Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cebf2ee authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab
Browse files

[media] lirc: fix null dereference for tx-only devices



tx-only RC devices do not have a receive buffer.

Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent f348b4d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -468,7 +468,7 @@ int lirc_dev_fop_open(struct inode *inode, struct file *file)
		if (retval) {
			module_put(cdev->owner);
			ir->open--;
		} else {
		} else if (ir->buf) {
			lirc_buffer_clear(ir->buf);
		}
		if (ir->task)