From: Mithlesh Thukral Date: Wed, 18 Feb 2009 13:22:18 +0000 (+0530) Subject: Staging: sxg: Fix memory leak in case of allocation failure X-Git-Tag: v2.6.30-rc1~202^2~661 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9d1081a833806e2f8ee7d8b827202e1bd5949b2;p=pandora-kernel.git Staging: sxg: Fix memory leak in case of allocation failure * Fix a memory leak if allocation of skb fails in sxg_fill_descriptor_block. In sxg_fill_descriptor_block(), if allocation of skb failed in loop, we just came out shouting. This rollbacks all the successful operation before skb allocation fails and then returns. Signed-off-by: LinSysSoft Sahara Team Signed-off-by: Mithlesh Thukral Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed