Message ID | 4AEF0837.8080503@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/media/dvb/siano/sms-cards.c b/drivers/media/dvb/siano/sms-cards.c index 0420e28..52f0dac 100644 --- a/drivers/media/dvb/siano/sms-cards.c +++ b/drivers/media/dvb/siano/sms-cards.c @@ -99,7 +99,7 @@ static struct sms_board sms_boards[] = { struct sms_board *sms_get_board(int id) { - BUG_ON(id >= ARRAY_SIZE(sms_boards)); + BUG_ON(id >= ARRAY_SIZE(sms_boards) || id < 0); return &sms_boards[id]; }