From: Mike Marciniszyn Date: Thu, 28 Mar 2013 18:12:28 +0000 (+0000) Subject: IB/ipath: Correct ipath_verbs_register_sysfs() error handling X-Git-Tag: v3.10-rc1~43^2^6~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=137200a4bb74c6d3c13a8eea1edd617a15fdf3e2;p=pandora-kernel.git IB/ipath: Correct ipath_verbs_register_sysfs() error handling ipath_verbs_register_sysfs() never returned the correct error code from device_create_file and never cleaned up from a failure. Additionally, the caller of ipath_verbs_register_sysfs() doesn't return the correct "ret" value. This patch resolves all of these issues. Reported-by: Wei Yongjun Reviewed-by: Dean Luick Signed-off-by: Mike Marciniszyn Signed-off-by: Roland Dreier --- Reading git-diff-tree failed