From: Vitaly Kuznetsov Date: Tue, 20 Jan 2015 15:45:04 +0000 (+0100) Subject: Drivers: hv: check vmbus_device_create() return value in vmbus_process_offer() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~85^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c3a6f7e476fc4961297fc66b1177f9f8c8dd238;p=pandora-kernel.git Drivers: hv: check vmbus_device_create() return value in vmbus_process_offer() vmbus_device_create() result is not being checked in vmbus_process_offer() and it can fail if kzalloc() fails. Add the check and do minor cleanup to avoid additional duplication of "free_channel(); return;" block. Reported-by: Jason Wang Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan Acked-by: Jason Wang Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed