net: sfp: add error checking with sfp_irq_name
Subsystems (4)
PATCH 1/1 net: sfp: add error checking with sfp_irq_name
Add error checking with sfp_irq_name before use.
Signed-off-by Chris Healy <[email protected]>
--- drivers/net/phy/sfp.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/phy/sfp.c +3 -0
@@ -2354,6 +2354,9 @@ static int sfp_probe(struct platform_device *pdev)"%s-%s" ,dev_name (sfp->dev), gpio_of_names[i]); +if (!sfp_irq_name) +return -ENOMEM ; + err = devm_request_threaded_irq(sfp->dev, sfp->gpio_irq[i], NULL, sfp_irq, IRQF_ONESHOT |
Signature · 1 line
2.21.3
From: Chris Healy <[email protected]>
Date: Tue, 7 Jul 2020 13:32:05 -0700
Quoted 3 lines
Add error checking with
sfp_irq_namebefore use.Signed-off-by Chris Healy <[email protected]>
Applied.