projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7b8170
)
ALSA: ac97: fix check of pm_runtime_get_sync failure
author
Lihua Yao
<ylhuajnu@163.com>
Wed, 15 Aug 2018 15:20:34 +0000
(23:20 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 19 Aug 2018 16:36:50 +0000
(18:36 +0200)
pm_runtime_get_sync returns negative on failure.
Fixes: 74426fbff66e ("ALSA: ac97: add an ac97 bus")
Signed-off-by: Lihua Yao <ylhuajnu@163.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/ac97/bus.c
patch
|
blob
|
history
diff --git
a/sound/ac97/bus.c
b/sound/ac97/bus.c
index 7a0dfca03a57d5b4cd7cbb00d73da095aa076679..640812cb2152f905f2210e194988f5f62af728a9 100644
(file)
--- a/
sound/ac97/bus.c
+++ b/
sound/ac97/bus.c
@@
-529,7
+529,7
@@
static int ac97_bus_remove(struct device *dev)
int ret;
ret = pm_runtime_get_sync(dev);
- if (ret)
+ if (ret
< 0
)
return ret;
ret = adrv->remove(adev);