]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ceph: osd_client: fix endianness bug in osd_req_encode_op()
authorAlex Elder <elder@dreawmhost.com>
Fri, 20 Apr 2012 20:49:43 +0000 (15:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:04 +0000 (11:38 -0800)
commitf77637d9f603dd74cf1b4366d7bb1938a6715ab2
treee28d1c10bba5c4b7accf02cdde8fea258a482b01
parentcf34fc7d48d9600665e570b5c8a297a52bbe5fc5
ceph: osd_client: fix endianness bug in osd_req_encode_op()

(cherry picked from commit 065a68f9167e20f321a62d044cb2c3024393d455)

From Al Viro <viro@zeniv.linux.org.uk>

Al Viro noticed that we were using a non-cpu-encoded value in
a switch statement in osd_req_encode_op().  The result would
clearly not work correctly on a big-endian machine.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/osd_client.c