summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/dgap/dgap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index f38354f..bdb5317 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -4414,6 +4414,7 @@ static struct board_t *find_board_by_major(unsigned int major)
for (i = 0; i < MAXBOARDS; i++) {
struct board_t *brd = dgap_board[i];
+
if (!brd)
return NULL;
if (major == brd->serial_driver->major ||
OpenPOWER on IntegriCloud