commit | 104a32e85f250742bc37e14d19a5dec706bed76e | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Fri Sep 16 01:50:01 2016 +0000 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Sep 22 18:27:49 2016 +0800 |
tree | 57e27f6f1c27041842e6f330bd04b8d7347691c4 | |
parent | f7eca278a8f81e701848392b522f80078bf2589f [diff] |
hwrng: geode - fix return value check in mod_init() In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 6e9b5e76882c ("hwrng: geode - Migrate to managed API") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>