1
0
Fork 0

staging: vt6655: Fix memory leak in wpa_ioctl()

Fix a memory leak in the wpa_ioctl() error handling path so that 'param' is
also freed correctly in case of an unsupported ioctl.
Detected by Coverity: CID 144380.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
wifi-calibration
Christian Engelmayer 2014-01-11 23:35:04 +01:00 committed by Greg Kroah-Hartman
parent 075c457b92
commit 6d2398743f
1 changed files with 2 additions and 2 deletions

View File

@ -923,8 +923,8 @@ int wpa_ioctl(PSDevice pDevice, struct iw_point *p)
default:
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "wpa_ioctl: unknown cmd=%d\n",
param->cmd);
return -EOPNOTSUPP;
break;
ret = -EOPNOTSUPP;
goto out;
}
if ((ret == 0) && wpa_ioctl) {