hwmon: (iio_hwmon) Fix null pointer dereference
authorAxel Lin <axel.lin@ingics.com>
Mon, 13 May 2013 13:37:26 +0000 (21:37 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 13 May 2013 13:43:14 +0000 (06:43 -0700)
This patch fixes the null pointer dereference in goto error_release_channels
path when allocate memory for st fails.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

No differences found