summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-16 01:49:41 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2016-09-22 18:27:48 +0800
commitf7eca278a8f81e701848392b522f80078bf2589f (patch)
tree1c7a1a2ac982e875532e10a81294c1bebdff2295 /drivers/crypto
parent06435f3437599d01653d42670c604d0b28a878e1 (diff)
downloadtalos-op-linux-f7eca278a8f81e701848392b522f80078bf2589f.tar.gz
talos-op-linux-f7eca278a8f81e701848392b522f80078bf2589f.zip
hwrng: amd - Fix return value check in mod_init()
In case of error, the function devm_kzalloc() or devm_ioport_map() return NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 31b2a73c9c5f ("hwrng: amd - Migrate to managed API") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud