Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1683558
| From | Christophe JAILLET <christophe.jaillet@wanadoo.fr> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mrf24j40: Fix en error handling path in 'mrf24j40_probe()' |
| Date | 2017-07-08 10:20 +0200 |
| Message-ID | <u0T85-8bu-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
If this check fails, we must release some resources as done everywhere
else in this function before returning an error code.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
drivers/net/ieee802154/mrf24j40.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c
index 7d334963dc08..da8683782ffc 100644
--- a/drivers/net/ieee802154/mrf24j40.c
+++ b/drivers/net/ieee802154/mrf24j40.c
@@ -1330,7 +1330,7 @@ static int mrf24j40_probe(struct spi_device *spi)
if (spi->max_speed_hz > MAX_SPI_SPEED_HZ) {
dev_warn(&spi->dev, "spi clock above possible maximum: %d",
MAX_SPI_SPEED_HZ);
- return -EINVAL;
+ goto err_register_device;
}
ret = mrf24j40_hw_init(devrec);
--
2.11.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] mrf24j40: Fix en error handling path in 'mrf24j40_probe()' Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2017-07-08 10:20 +0200
csiph-web