staging:iio:dac:ad5504 dereferencing just freed st in error path.
authorJonathan Cameron <jic23@cam.ac.uk>
Fri, 12 Aug 2011 15:55:33 +0000 (16:55 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:28:43 +0000 (13:28 -0700)
commit0cbb2b53fb57b002d0511226f3ad001569be9c66
tree5c0ce7a126d6bb2a96d436352db437b74ecf03b5
parent8df322385a7e253672dc5077c11dc1a6219d25cc
staging:iio:dac:ad5504 dereferencing just freed st in error path.

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