Changeset 21781 for branches/backfire


Ignore:
Timestamp:
2010-06-13T13:45:40+02:00 (6 years ago)
Author:
juhosg
Message:

backfire: swconfig: release switch in error path of swconfig_get_attr (backport of r21799)

Signed-off-by: Karl Beldan <karl.beldan@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c

    r20948 r21781  
    685685        attr = swconfig_lookup_attr(dev, info, &val); 
    686686        if (!attr || !attr->get) 
    687                 goto error_dev; 
     687                goto error; 
    688688 
    689689        if (attr->type == SWITCH_TYPE_PORTS) { 
     
    734734        if (msg) 
    735735                nlmsg_free(msg); 
    736 error_dev: 
     736error: 
    737737        swconfig_put_dev(dev); 
    738 error: 
    739738        if (!err) 
    740739                err = -ENOMEM; 
Note: See TracChangeset for help on using the changeset viewer.