reset: NULL deref on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 Apr 2013 05:02:53 +0000 (08:02 +0300)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 12 Apr 2013 08:26:24 +0000 (10:26 +0200)
commit6034bb22d8387708075c083385e5d2e1072a4f33
treeefc8599ba0f4ebbec9f7520867ee815d89f9470e
parent61fc41317666be400802ac793f47de816ef7bd57
reset: NULL deref on allocation failure

"rstc" is NULL here and we should use "rcdev" instead of "rstc->rcdev".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c