diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-17 19:43:40 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 18:41:36 -0200 |
commit | 3a054627cc949c3b7bb8387543919e7d4022753a (patch) | |
tree | 5005b60b119358858d1da422471a0c622e944858 /drivers/media/dvb/siano/sms-cards.c | |
parent | 2b588db82d2c210e84da129a223bb403d3131abe (diff) | |
download | linux-3.10-3a054627cc949c3b7bb8387543919e7d4022753a.tar.gz linux-3.10-3a054627cc949c3b7bb8387543919e7d4022753a.tar.bz2 linux-3.10-3a054627cc949c3b7bb8387543919e7d4022753a.zip |
V4L/DVB (13380): sms-cards: make id unsigned in sms_get_board()
Make id signed so we can't get an invalid pointer when we pass a negative
id.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/siano/sms-cards.c')
-rw-r--r-- | drivers/media/dvb/siano/sms-cards.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/siano/sms-cards.c b/drivers/media/dvb/siano/sms-cards.c index e21638969cd..1067b22eb0c 100644 --- a/drivers/media/dvb/siano/sms-cards.c +++ b/drivers/media/dvb/siano/sms-cards.c @@ -97,7 +97,7 @@ static struct sms_board sms_boards[] = { }, }; -struct sms_board *sms_get_board(int id) +struct sms_board *sms_get_board(unsigned id) { BUG_ON(id >= ARRAY_SIZE(sms_boards)); |