The patch titled tokenring/3c359.c: Prevent possible mem leak when open failed has been removed from the -mm tree. Its filename was tokenring-3c359c-prevent-possible-mem-leak-when-open-failed.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: tokenring/3c359.c: Prevent possible mem leak when open failed From: Jirka Pirko <jirka@xxxxxxxx> Freeing previously allocated buffers in case of error. Signed-off-by: Jirka Pirko <jirka@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/net/tokenring/3c359.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/net/tokenring/3c359.c~tokenring-3c359c-prevent-possible-mem-leak-when-open-failed drivers/net/tokenring/3c359.c --- a/drivers/net/tokenring/3c359.c~tokenring-3c359c-prevent-possible-mem-leak-when-open-failed +++ a/drivers/net/tokenring/3c359.c @@ -669,6 +669,8 @@ static int xl_open(struct net_device *de if (i==0) { printk(KERN_WARNING "%s: Not enough memory to allocate rx buffers. Adapter disabled \n",dev->name) ; free_irq(dev->irq,dev) ; + kfree(xl_priv->xl_tx_ring); + kfree(xl_priv->xl_rx_ring); return -EIO ; } _ Patches currently in -mm which might be from jirka@xxxxxxxx are linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html