staging: lustre: return proper error code for libcfs_kkuc_msg_put
authorJames Simmons <jsimmons@infradead.org>
Wed, 23 Dec 2015 21:24:50 +0000 (16:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 22:20:14 +0000 (14:20 -0800)
commit2bab480d1ca9b654eff316eba44fad2eac8884b4
tree621af4480686cc2977c8a58a00b6572421d84c43
parenta0d5e63e436629f41c1e8ea6aa0d506192afd75e
staging: lustre: return proper error code for libcfs_kkuc_msg_put

The functon libcfs_kkuc_msg_put() returns -ENOSYS which is not
correct. Return -ENXIO instead if the kuc header is corrupt.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/kernelcomm.c