caif: Fixed potential memory leak
authorKim Lilliestierna XX <kim.xx.lilliestierna@stericsson.com>
Mon, 25 Jun 2012 07:49:35 +0000 (07:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2012 23:44:11 +0000 (16:44 -0700)
commitaf06220a88b11537cbf66d929e2ddb88c01a8721
treed3fe7940aa9b9d2c9e2329c900df3e4859da42a8
parent03609b49951583411996ad526ec980d45c4c811c
caif: Fixed potential memory leak

Rearranged the allocation and packet creations to
avoid potential leaks in error path.

Signed-off-by: Kim Lilliestierna <kim.xx.lilliestierna@stericsson.com>
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericssion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfctrl.c