diff options
author | Dan Carpenter <error27@gmail.com> | 2010-08-24 08:53:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-24 23:50:26 +0200 |
commit | 945c7c73e2e81d68e3e2970afd95254e8f153fc9 (patch) | |
tree | cfbeb347dbc281bc786b591396d180f8ef051778 /Documentation/prctl | |
parent | pxa168_eth: remove unneeded null check (diff) | |
download | linux-945c7c73e2e81d68e3e2970afd95254e8f153fc9.tar.xz linux-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 'Documentation/prctl')
0 files changed, 0 insertions, 0 deletions