diff options
| author | Dan Carpenter <[email protected]> | 2010-07-22 01:16:48 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-07-22 14:14:48 -0700 |
| commit | 1ff219068c0e032a6fd64c45bd69f3bc7374feb6 (patch) | |
| tree | 9978774f6e4f5b1fbcc2e6dd9e178e31f4c1a9e4 /tools/perf/scripts/python | |
| parent | b77026b391f4f43ca148cf6c55a93f7487ff6ed8 (diff) | |
stmmac: handle allocation errors in setup functions
If the allocations fail in either dwmac1000_setup() or dwmac100_setup()
then return NULL. These are called from stmmac_mac_device_setup(). The
check for NULL returns in stmmac_mac_device_setup() needed to be moved
forward a couple lines.
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions