Commit c5e09528 authored by Dominik Brodowski's avatar Dominik Brodowski

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

... for struct pcmcia_device only provides for 4 anyway.
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 84897fc0
...@@ -583,7 +583,7 @@ static int pcmcia_device_query(struct pcmcia_device *p_dev) ...@@ -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, if (!pccard_read_tuple(p_dev->socket, BIND_FN_ALL, CISTPL_VERS_1,
vers1)) { vers1)) {
for (i=0; i < vers1->ns; i++) { for (i = 0; i < min_t(unsigned int, 4, vers1->ns); i++) {
char *tmp; char *tmp;
unsigned int length; unsigned int length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment