Commit ad9547c0 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

brcm80211: fmac: small memory leak on error

We should free "bus_if" here, it's a small leak but it makes the static
checkers happy.
Signed-off-by: default avatarDan Carpenter <>
Signed-off-by: default avatarJohn W. Linville <>
parent 7468722b
......@@ -477,8 +477,10 @@ static int brcmf_ops_sdio_probe(struct sdio_func *func,
if (!bus_if)
return -ENOMEM;
sdiodev = kzalloc(sizeof(struct brcmf_sdio_dev), GFP_KERNEL);
if (!sdiodev)
if (!sdiodev) {
return -ENOMEM;
sdiodev->dev = &func->card->dev;
sdiodev->func[0] = func->card->sdio_func[0];
sdiodev->func[1] = func;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment