commit | 5bb20ed863f8573ecd1956f0ebd2c3d36e6e0585 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Sep 20 21:21:59 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Oct 03 13:45:49 2011 -0400 |
tree | 45591d04c0dd9f8134c100bdfc86f96869059718 | |
parent | 64af1bac9b979ae1f2f052742fda06d65f497643 [diff] |
caif: add error handling for allocation The allocation of "phyinfo" wasn't checked, and also the allocation wasn't freed on error paths. Sjur Brændeland pointed out as well that "phy_driver" should be freed on the error path too. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>