OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8df3223
)
staging:iio:dac:ad5504 dereferencing just freed st in error path.
author
Jonathan Cameron
<jic23@cam.ac.uk>
Fri, 12 Aug 2011 15:55:33 +0000
(16:55 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 23 Aug 2011 20:28:43 +0000
(13:28 -0700)
Introduced when I did the iio_chan_spec conversion. Detected by smatch.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/dac/ad5504.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/dac/ad5504.c
b/drivers/staging/iio/dac/ad5504.c
index
1915f45
..
88512dd
100644
(file)
--- a/
drivers/staging/iio/dac/ad5504.c
+++ b/
drivers/staging/iio/dac/ad5504.c
@@
-338,7
+338,7
@@
error_free_dev:
iio_free_device(indio_dev);
error_disable_reg:
if (!IS_ERR(reg))
- regulator_disable(
st->
reg);
+ regulator_disable(reg);
error_put_reg:
if (!IS_ERR(reg))
regulator_put(reg);