diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2016-05-09 11:47:34 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-09 14:10:03 +0200 |
commit | bddb1531086ff40e8eb81dd1e30b56407a7a4279 (patch) | |
tree | c744a9d44d954e3d3f9de314fc3cc10e5499b330 /drivers/staging | |
parent | c246e2305aa2a70d720b4d50427d25bf786de7e6 (diff) | |
download | linux-bddb1531086ff40e8eb81dd1e30b56407a7a4279.tar.gz linux-bddb1531086ff40e8eb81dd1e30b56407a7a4279.tar.bz2 linux-bddb1531086ff40e8eb81dd1e30b56407a7a4279.zip |
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: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/dgnc/dgnc_neo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 9eae1a695980..ba57e9546f72 100644 --- 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 */ |