Subject: off by one in sdla_close()

From: Dan Carpenter <[email-masked]>
Date: Sun, 3 Jan 2010 12:04:05 +0200

drivers/net/wan/sdla.c
   955                  for(i=0;i<CONFIG_DLCI_MAX;i++)
   956                          if (flp->dlci[i] > 0)
   957                                  sdla_cmd(dev, SDLA_DEACTIVATE_DLCI, 0, 0, dlcis, len, NULL, NULL);
   958                  sdla_cmd(dev, SDLA_DELETE_DLCI, 0, 0, &flp->dlci[i], sizeof(flp->dlci[i]), NULL, NULL);
 
At the end of the for loop i == CONFIG_DLCI_MAX which is too high.

regards,
dan carpenter