usbnet: smsc95xx: fix memory leak in smsc95xx_suspend
authorMing Lei <ming.lei@canonical.com>
Tue, 6 Nov 2012 04:53:06 +0000 (04:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 08:53:38 +0000 (03:53 -0500)
commit06a221be022c2cc98a48e0808a4ef0dc8f0b3a34
tree935fe2fc77739a73ddc5d7c17480c55c628da98d
parent47bbea4171025c96e80f7ded7595697a2cb56552
usbnet: smsc95xx: fix memory leak in smsc95xx_suspend

This patch fixes memory leak in smsc95xx_suspend.

Also, it isn't necessary to bother mm to allocate 8bytes/16byte,
and we can use stack variable safely.

Acked-By: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c