summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/interrupt-controller
diff options
context:
space:
mode:
authorCatalin Vasile <cata.vasile@nxp.com>2016-05-06 16:18:53 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2016-05-10 17:49:21 +0800
commite930c765ca5c6b039cd22ebfb4504ea7b5dab43d (patch)
treea19b084027b5c9160b934bb962888370ceda184b /Documentation/devicetree/bindings/interrupt-controller
parent5ca55738201c7ae1b556ad87bbb22c139ecc01dd (diff)
crypto: caam - fix caam_jr_alloc() ret code
caam_jr_alloc() used to return NULL if a JR device could not be allocated for a session. In turn, every user of this function used IS_ERR() function to verify if anything went wrong, which does NOT look for NULL values. This made the kernel crash if the sanity check failed, because the driver continued to think it had allocated a valid JR dev instance to the session and at some point it tries to do a caam_jr_free() on a NULL JR dev pointer. This patch is a fix for this issue. Cc: <stable@vger.kernel.org> Signed-off-by: Catalin Vasile <cata.vasile@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'Documentation/devicetree/bindings/interrupt-controller')
0 files changed, 0 insertions, 0 deletions