mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
Merge branch 'eisa' into next
* eisa: EISA: Call put_device() if device_register() fails
This commit is contained in:
commit
e338e49dbb
|
|
@ -232,8 +232,10 @@ static int __init eisa_init_device(struct eisa_root_device *root,
|
|||
static int __init eisa_register_device(struct eisa_device *edev)
|
||||
{
|
||||
int rc = device_register(&edev->dev);
|
||||
if (rc)
|
||||
if (rc) {
|
||||
put_device(&edev->dev);
|
||||
return rc;
|
||||
}
|
||||
|
||||
rc = device_create_file(&edev->dev, &dev_attr_signature);
|
||||
if (rc)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user