From: Jason Wang Date: Wed, 19 Jun 2013 03:28:10 +0000 (+0800) Subject: drivers: hv: allocate synic structures before hv_synic_init() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~75^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2608fb653103419ac163206ff6d51b7b6528e2d9;p=pandora-kernel.git drivers: hv: allocate synic structures before hv_synic_init() We currently allocate synic structures in hv_sync_init(), but there's no way for the driver to know about the allocation failure and it may continue to use the uninitialized pointers. Solve this by introducing helpers for allocating and freeing and doing the allocation before the on_each_cpu() call in vmbus_bus_init(). Cc: Haiyang Zhang Signed-off-by: Jason Wang Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed