mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 16:53:54 +08:00
ALSA: pcxhr: NULL dereference on probe failure
"card" is NULL if snd_card_new() fails. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
feabb67e0e
commit
6e1d7a5139
@ -1638,7 +1638,7 @@ static int pcxhr_probe(struct pci_dev *pci,
|
||||
0, &card);
|
||||
|
||||
if (err < 0) {
|
||||
dev_err(card->dev, "cannot allocate the card %d\n", i);
|
||||
dev_err(&pci->dev, "cannot allocate the card %d\n", i);
|
||||
pcxhr_free(mgr);
|
||||
return err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user