Home
last modified time | relevance | path

Searched hist:"9 dac6232" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/cisco/enic/
H A Denic_main.c9dac6232 Fri Jan 02 09:23:27 CST 2015 Govindarajulu Varadarajan <_govind@gmx.com> enic: free all rq buffs when allocation fails

When allocation of all RQs fail, we do not free previously allocated buffers,
before returning error. This causes memory leak.

This patch fixes this by calling vnic_rq_clean(), which frees all the rq
buffers.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
9dac6232 Fri Jan 02 09:23:27 CST 2015 Govindarajulu Varadarajan <_govind@gmx.com> enic: free all rq buffs when allocation fails

When allocation of all RQs fail, we do not free previously allocated buffers,
before returning error. This causes memory leak.

This patch fixes this by calling vnic_rq_clean(), which frees all the rq
buffers.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>