Skip to contentSkip to conversation

off by one in sdla_close()

DISCUSSION Dan Carpenter 1 participant 1 message Jan 3, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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