off by one in sdla_close()

From: Dan Carpenter <hidden>
Date: 2010-01-03 10:04:23

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help