ALSA: xen-front: freeing an error pointer
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 30 May 2018 10:36:55 +0000 (13:36 +0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 30 May 2018 11:19:45 +0000 (13:19 +0200)
commite46dcbb17d790008a12b1c18f6235d03d1dd635b
tree9913ccd2a12efa83332f225656cd6d9235152a5c
parent986376b68dcc95bb7df60ad30c2353c1f7578fa5
ALSA: xen-front: freeing an error pointer

kfree() doesn't accept error pointers so I've set "str" to NULL on these
paths.

Fixes: fd3b36045c2c ("ALSA: xen-front: Read sound driver configuration from Xen store")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/xen/xen_snd_front_cfg.c