projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00792ac
)
ASoC: imx-audmux: Check for NULL pointer
author
Fabio Estevam
<fabio.estevam@freescale.com>
Thu, 5 Apr 2012 13:57:51 +0000
(10:57 -0300)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Thu, 5 Apr 2012 14:23:20 +0000
(15:23 +0100)
Check for NULL pointer before accessing it.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/imx/imx-audmux.c
patch
|
blob
|
history
diff --git
a/sound/soc/imx/imx-audmux.c
b/sound/soc/imx/imx-audmux.c
index
912a342
..
0fe66c3
100644
(file)
--- a/
sound/soc/imx/imx-audmux.c
+++ b/
sound/soc/imx/imx-audmux.c
@@
-79,6
+79,9
@@
static ssize_t audmux_read_file(struct file *file, char __user *user_buf,
if (!buf)
return -ENOMEM;
+ if (!audmux_base)
+ return -ENOSYS;
+
if (audmux_clk)
clk_prepare_enable(audmux_clk);