From: Alexey Khoroshilov Date: Wed, 8 Aug 2012 08:53:07 +0000 (+0400) Subject: USB: whci-hcd: Fix potential memory leak in qset_add_urb_sg() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~188 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05f2b3912323b4130dbf6d5091601d9ca3aaf119;p=pandora-kernel.git USB: whci-hcd: Fix potential memory leak in qset_add_urb_sg() Do not leak memory by updating pointer with potentially NULL realloc return value. By the way remove unused local variable: struct whc_page_list_entry *entry; More precisely, it was used to increment uninitialized value within one of cycles. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed