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

Commit bddb1531 authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman
Browse files

staging: dgnc: Need to check for NULL of ch



the "ch" from brd structure could be NULL, it need to
check for NULL.

Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c246e230
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -380,7 +380,7 @@ static inline void neo_parse_isr(struct dgnc_board *brd, uint port)
	unsigned long flags;

	ch = brd->channels[port];
	if (ch->magic != DGNC_CHANNEL_MAGIC)
	if (!ch || ch->magic != DGNC_CHANNEL_MAGIC)
		return;

	/* Here we try to figure out what caused the interrupt to happen */