crypto: img-hash - Fix null pointer exception
authorWill Thomas <will.thomas@imgtec.com>
Fri, 5 Aug 2016 13:00:14 +0000 (14:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Aug 2016 10:47:19 +0000 (18:47 +0800)
commit10badea259fab2ec91a5e6bf1e568a01e4cb5263
treec4dd546e7b50ce90be3e32da2121224d0890c80d
parent0fae0c1e1d7991ce0dbefdd1c35c14e9d0025cc2
crypto: img-hash - Fix null pointer exception

Sporadic null pointer exceptions came from here. Fix them.

Signed-off-by: Will Thomas <will.thomas@imgtec.com>
Reviewed-by: James Hartley <james.hartley@imgtec.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/img-hash.c