From: Kevin McKinney Date: Fri, 2 Dec 2011 03:02:15 +0000 (-0500) Subject: Staging: bcm: Fix double free of 'pReadData' in IOCTL_BCM_NVM_WRITE. X-Git-Tag: v3.3-rc1~152^2~101^2~32 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09468b0392b1d2b079b334d60a23d7da8105dc53;p=pandora-kernel.git Staging: bcm: Fix double free of 'pReadData' in IOCTL_BCM_NVM_WRITE. This patch fixes a memory error in ioctl, IOCTL_BCM_NVM_WRITE. While copying data to user space, if an error occurs, pReadData is freed. Then, at the end of the ioctl, pReadData was being freed again. Signed-off-by: Kevin McKinney Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed