]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
target: Fix 16-bit target ports for SET TARGET PORT GROUPS emulation
authorRoland Dreier <roland@purestorage.com>
Fri, 24 Feb 2012 01:22:12 +0000 (17:22 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 17:32:06 +0000 (10:32 -0700)
commit527a832cda6dbe7ac3a38dcceb7fe422a7980e13
tree5d320649b50bb64c0c7ad185f75c272284306ae9
parent3b5e7a259c88befb754607dcabd14b4f01bef212
target: Fix 16-bit target ports for SET TARGET PORT GROUPS emulation

commit 33395fb8a13731c7ef7b175dbf5a4d8a6738fe6c upstream.

The old code did (MSB << 8) & 0xff, which always evaluates to 0.  Just use
get_unaligned_be16() so we don't have to worry about whether our open-coded
version is correct or not.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_alua.c