]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 12 Apr 2012 22:14:37 +0000 (15:14 -0700)
commit63a6711af3d7482cd72b41427a676f51658408bd
treeff41bc1c2a8d270097fd24a6586781d287bcd3a0
parent506b4008962b3b20cd78f86670653f67ac800e22
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