mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
crypto: inside-secure/eip93 - Add check for devm_request_threaded_irq
As the potential failure of the devm_request_threaded_irq(),
it should be better to check the return value and return
error if fails.
Fixes: 9739f5f93b ("crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine support")
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
8cfd577a5c
commit
85a61bf914
|
|
@ -433,6 +433,8 @@ static int eip93_crypto_probe(struct platform_device *pdev)
|
|||
ret = devm_request_threaded_irq(eip93->dev, eip93->irq, eip93_irq_handler,
|
||||
NULL, IRQF_ONESHOT,
|
||||
dev_name(eip93->dev), eip93);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
eip93->ring = devm_kcalloc(eip93->dev, 1, sizeof(*eip93->ring), GFP_KERNEL);
|
||||
if (!eip93->ring)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user