caif: Plug memory leak for checksum error
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>
Sun, 22 May 2011 11:18:54 +0000 (11:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 00:11:49 +0000 (20:11 -0400)
commit69c867c90c7fe0773d9aa4e8bbf777f574be13d2
treeb67c6269246eb32f6826d590ed6067c5ab87e9a2
parent138eded8ba1227261a297b32b7940664c14d193e
caif: Plug memory leak for checksum error

In case of checksum error, the framing layer returns -EILSEQ, but
does not free the packet. Plug this hole by freeing the packet if
-EILSEQ is returned.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_dev.c