Commit 80b15db5 authored by Navid Emamdoost's avatar Navid Emamdoost Committed by Greg Kroah-Hartman

staging: vt6655: Fix memory leak in vt6655_probe

In vt6655_probe, if vnt_init() fails the cleanup code needs to be called
like other error handling cases. The call to device_free_info() is

Fixes: 67013f2c ("staging: vt6655: mac80211 conversion add main mac80211 functions")
Signed-off-by: default avatarNavid Emamdoost <>
Cc: stable <>
Link: default avatarGreg Kroah-Hartman <>
parent 6e58fc14
......@@ -1748,8 +1748,10 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
priv->hw->max_signal = 100;
if (vnt_init(priv))
if (vnt_init(priv)) {
return -ENODEV;
pci_set_drvdata(pcid, priv);
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