Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pcmcia: do not try to store more than 4 version strings

... for struct pcmcia_device only provides for 4 anyway.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

+1 -1
+1 -1
drivers/pcmcia/ds.c
··· 583 583 584 584 if (!pccard_read_tuple(p_dev->socket, BIND_FN_ALL, CISTPL_VERS_1, 585 585 vers1)) { 586 - for (i=0; i < vers1->ns; i++) { 586 + for (i = 0; i < min_t(unsigned int, 4, vers1->ns); i++) { 587 587 char *tmp; 588 588 unsigned int length; 589 589