projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c246e23
)
staging: dgnc: Need to check for NULL of ch
author
Daeseok Youn
<daeseok.youn@gmail.com>
Mon, 9 May 2016 02:47:34 +0000
(11:47 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 9 May 2016 12:10:03 +0000
(14:10 +0200)
the "ch" from brd structure could be NULL, it need to
check for NULL.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dgnc/dgnc_neo.c
b/drivers/staging/dgnc/dgnc_neo.c
index
9eae1a6
..
ba57e95
100644
(file)
--- a/
drivers/staging/dgnc/dgnc_neo.c
+++ b/
drivers/staging/dgnc/dgnc_neo.c
@@
-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 */