| Submitter | Peter Senna Tschudin |
|---|---|
| Date | Oct. 5, 2012, 9:33 p.m. |
| Message ID | <1349472786-10921-5-git-send-email-peter.senna@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/189604/ |
| State | Accepted |
| Headers | show |
Comments
Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c index e250675..42fde9e 100644 --- a/drivers/net/irda/sa1100_ir.c +++ b/drivers/net/irda/sa1100_ir.c @@ -940,8 +940,10 @@ static int sa1100_irda_probe(struct platform_device *pdev) goto err_mem_3; dev = alloc_irdadev(sizeof(struct sa1100_irda)); - if (!dev) + if (!dev) { + err = -ENOMEM; goto err_mem_4; + } SET_NETDEV_DEV(dev, &pdev->dev);