caif: Fixed potential memory leak
Rearranged the allocation and packet creations to avoid potential leaks in error path. Signed-off-by: NKim Lilliestierna <kim.xx.lilliestierna@stericsson.com> Signed-off-by: NSjur Brændeland <sjur.brandeland@stericssion.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录