]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pppoe: Fix socket leak.
authorDavid S. Miller <davem@davemloft.net>
Fri, 31 Oct 2008 06:11:44 +0000 (23:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Oct 2008 06:35:02 +0000 (23:35 -0700)
commit263e69cbc9e5a9e7bcf6a24f641ef0717d1ae4df
treeb82cb19bc63531782b018b3ad70c5e58dab44569
parent721d5dfe7e516954c501d5e9d0dfab379cf4241a
pppoe: Fix socket leak.

Move SKB trim before we lookup the socket so we don't have to
put it on failure.

Based upon an initial patch by Jarek Poplawski and suggestions
from Herbert Xu.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pppoe.c