mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
s390/qeth: indicate error when netdev allocation fails
Bailing out on allocation error is nice, but we also need to tell the
ccwgroup core that creating the qeth groupdev failed.
Fixes: d3d1b205e8
("s390/qeth: allocate netdevice early")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cc4dfb7f70
commit
778b1ac737
1 changed files with 3 additions and 1 deletions
|
@ -5768,8 +5768,10 @@ static int qeth_core_probe_device(struct ccwgroup_device *gdev)
|
|||
qeth_update_from_chp_desc(card);
|
||||
|
||||
card->dev = qeth_alloc_netdev(card);
|
||||
if (!card->dev)
|
||||
if (!card->dev) {
|
||||
rc = -ENOMEM;
|
||||
goto err_card;
|
||||
}
|
||||
|
||||
qeth_determine_capabilities(card);
|
||||
enforced_disc = qeth_enforce_discipline(card);
|
||||
|
|
Loading…
Reference in a new issue