From: Jon Mason Date: Mon, 15 Jul 2013 20:23:47 +0000 (-0700) Subject: NTB: Add Error Handling in ntb_device_setup X-Git-Tag: v3.12-rc1~99^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b12a0d15bd1559e72ad21d9d807fd2a6706f0ab;p=pandora-kernel.git NTB: Add Error Handling in ntb_device_setup If an error is encountered in ntb_device_setup, it is possible that the spci_cmd isn't populated. Writes to the offset can result in a NULL pointer dereference. This issue is easily encountered by running in NTB-RP mode, as it currently is not supported and will generate an error. To get around this issue, return if an error is encountered prior to attempting to write to the spci_cmd offset. Signed-off-by: Jon Mason --- Reading git-diff-tree failed