[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0905271607370.11440@bicker>
Date: Tue, 2 Jun 2009 11:50:52 +0300 (EAT)
From: Dan Carpenter <error27@...il.com>
To: netdev@...r.kernel.org
Subject: potential null dereference in proto_register()
There is a potential null dereference in proto_register()
from net/core/sock.c
prot->rsk_prot can be null on line 2161 but we dereference it on line
2167.
2161 out_free_request_sock_slab:
2162 if (prot->rsk_prot && prot->rsk_prot->slab) {
2163 kmem_cache_destroy(prot->rsk_prot->slab);
2164 prot->rsk_prot->slab = NULL;
2165 }
2166 out_free_request_sock_slab_name:
2167 kfree(prot->rsk_prot->slab_name);
Found by smatch.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists