From: Steve French Date: Sun, 16 Sep 2007 23:12:47 +0000 (+0000) Subject: [CIFS] fix small memory leak in an error path in new posix mkdir X-Git-Tag: v2.6.24-rc1~138^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a07cdf86c1485b570789fb660c8ada7c2635b23;p=pandora-kernel.git [CIFS] fix small memory leak in an error path in new posix mkdir There is a small memory leak in fs/cifs/inode.c::cifs_mkdir(). Storage for 'pInfo' is allocated with kzalloc(), but if the call to CIFSPOSIXCreate(...) happens to return 0 and pInfo->Type == -1, then we'll jump to the 'mkdir_get_info' label without freeing the storage allocated for 'pInfo'. This patch adds a kfree() call to free the storage just before jumping to the label, thus getting rid of the leak. Signed-off-by: Jesper Juhl Signed-off-by: Steve French --- Reading git-diff-tree failed