From: Eugene Teo <[EMAIL PROTECTED]> The Coverity checker (CID: 930) spotted this double free on error path (allocation failure). Do not free these here since generic error path will take care of this.
Signed-off-by: Eugene Teo <[EMAIL PROTECTED]> Signed-off-by: Jouni Malinen <[EMAIL PROTECTED]> Index: wireless-2.6/drivers/net/wireless/hostap/hostap_cs.c =================================================================== --- wireless-2.6.orig/drivers/net/wireless/hostap/hostap_cs.c +++ wireless-2.6/drivers/net/wireless/hostap/hostap_cs.c @@ -585,8 +585,6 @@ static int prism2_config(dev_link_t *lin parse = kmalloc(sizeof(cisparse_t), GFP_KERNEL); hw_priv = kmalloc(sizeof(*hw_priv), GFP_KERNEL); if (parse == NULL || hw_priv == NULL) { - kfree(parse); - kfree(hw_priv); ret = -ENOMEM; goto failed; } -- -- Jouni Malinen PGP id EFC895FA - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html