[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20100103100405.GC13263@bicker>
Date: Sun, 3 Jan 2010 12:04:05 +0200
From: Dan Carpenter <error27@...il.com>
To: Mike McLagan <mike.mclagan@...ux.org>
Cc: netdev@...r.kernel.org
Subject: off by one in sdla_close()
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists