Skip to content

Commit

Permalink
pcmcia: do not try to store more than 4 version strings
Browse files Browse the repository at this point in the history
... for struct pcmcia_device only provides for 4 anyway.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Dominik Brodowski committed Oct 18, 2009
1 parent 84897fc commit c5e0952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ static int pcmcia_device_query(struct pcmcia_device *p_dev)

if (!pccard_read_tuple(p_dev->socket, BIND_FN_ALL, CISTPL_VERS_1,
vers1)) {
for (i=0; i < vers1->ns; i++) {
for (i = 0; i < min_t(unsigned int, 4, vers1->ns); i++) {
char *tmp;
unsigned int length;

Expand Down

0 comments on commit c5e0952

Please sign in to comment.