Prev: [PATCH v2 7/7] KVM: MMU: reduce remote tlb flush in kvm_mmu_pte_write()
Next: Commit cfecde435dda78248d6fcdc424bed68d5db6be0b turns screen blank
From: Greg KH on 4 Jun 2010 11:30 On Fri, Jun 04, 2010 at 06:25:28PM +0800, Wan ZongShun wrote: > The netlink_kernel_create failed will arouse memory leak, > this patch is to add the 'kfree(ue_sk)' here. > > Signed-off-by: Wan ZongShun <mcuos.com(a)gmail.com> > > --- > lib/kobject_uevent.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c > index 59c1551..08e15f7 100644 > --- a/lib/kobject_uevent.c > +++ b/lib/kobject_uevent.c > @@ -378,6 +378,7 @@ static int uevent_net_init(struct net *net) > if (!ue_sk->sk) { > printk(KERN_ERR > "kobject_uevent: unable to create netlink socket!\n"); > + kfree(ue_sk); Sorry, others already sent this patch in before you, it's already in the linux-next tree, and is going to Linus later today. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |