diff options
author | Dan Carpenter <error27@gmail.com> | 2010-08-24 06:53:33 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-24 14:50:26 -0700 |
commit | 945c7c73e2e81d68e3e2970afd95254e8f153fc9 (patch) | |
tree | cfbeb347dbc281bc786b591396d180f8ef051778 /drivers/uwb | |
parent | 4169591fd7c260b2b0b4e8f4d51f63f5b15ad78a (diff) | |
download | linux-3.10-945c7c73e2e81d68e3e2970afd95254e8f153fc9.tar.gz linux-3.10-945c7c73e2e81d68e3e2970afd95254e8f153fc9.tar.bz2 linux-3.10-945c7c73e2e81d68e3e2970afd95254e8f153fc9.zip |
pxa168_eth: fix error handling in prope
A couple issues here:
* Some resources weren't released.
* If alloc_etherdev() failed it would have caused a NULL dereference
because "pep" would be null when we checked "if (pep->clk)".
* Also it's better to propagate the error codes from mdiobus_register()
instead of just returning -ENOMEM.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/uwb')
0 files changed, 0 insertions, 0 deletions