OpenCloudOS-Kernel/drivers/staging
Justin Skists 127aaef460 staging: lustre: lnet: use correct 'magic' test
Use the lnet_magic_accept() function to compare 'magic' against
LNET_PROTO_TCP_MAGIC for the appropriate string for an error message.

The original fix removed an unneeded byte-ordering cast because the define
was already CPU byte-ordered and it was assumed that 'magic' was CPU
byte-ordered, too.

Now modify the if-statement to use the appropriate lnet_accept_magic()
function in order to be consistent with similar tests. This will allow
the code to be consistent with the general understanding that 'magic'
should be in host-byte-order for the peer that sent the message.

Fixes: 80782927e3 ("staging: lustre: Fix unneeded byte-ordering cast")
Signed-off-by: Justin Skists <j.skists@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-22 18:15:35 +01:00
..
android drivers:staging:android:ashmem: Changing return type from int to loff_t 2018-03-19 19:43:24 +01:00
board License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clocking-wizard staging: clocking-wizard: remove redundant license text 2018-01-15 16:03:45 +01:00
comedi staging: comedi: ni_mio_common: ack ai fifo error interrupts. 2018-03-19 19:43:24 +01:00
dgnc staging: dgnc: drop unused neo_uart_struct 2018-01-17 15:02:56 +01:00
emxx_udc staging: emxx_udc: Remove unnecessary NULL checks 2018-03-06 04:09:17 -08:00
fbtft staging: fbtft: remove unused FB_TFT_SSD1325 kconfig 2018-01-25 13:10:39 +01:00
fsl-dpaa2 staging: fsl-dpaa2/eth: Defer probing if no MC portal available 2018-03-22 18:15:34 +01:00
fsl-mc staging: fsl-mc: Move DPCON out of staging 2018-03-14 13:18:42 +01:00
fwserial vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
gdm724x Staging: gdm724x: LTE: Refactor gdm_lte_pdn_table(). 2018-02-23 09:54:56 +01:00
goldfish staging: goldfish: (Coding Style) Fixed parenthesis alignment. 2017-08-31 18:21:37 +02:00
greybus vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
gs_fpgaboot Staging: gs_fpgaboot: remove FSF's mailing address from io.h 2018-01-08 16:47:23 +01:00
iio Second set of new device support, features and cleanup for IIO in the 4.17 cycle 2018-03-14 12:32:11 +01:00
ipx Staging/IIO patches for 4.16-rc1 2018-02-01 09:51:57 -08:00
ks7010 staging: ks7010: replace DPRINTK traces in favour of netdev_* 2018-03-19 19:49:49 +01:00
lustre staging: lustre: lnet: use correct 'magic' test 2018-03-22 18:15:35 +01:00
media Revert "Staging: bcm2048: Fix function argument alignment in radio-bcm2048.c." 2018-02-27 14:42:14 +01:00
most staging: most: Remove unnecessary usage of BUG_ON(). 2018-03-08 09:56:15 -08:00
mt29f_spinand staging:mt29f_spinand: MT29F2G failing as only 16 bits used for addressing. 2018-03-19 19:46:51 +01:00
mt7621-dma staging: mt7621-dma: ralink: add rt2880 dma engine 2018-03-19 19:56:02 +01:00
mt7621-dts staging: mt7621-dts: add dts files 2018-03-19 19:56:02 +01:00
mt7621-eth staging: mt7621-eth: mediatek: add Kconfig and Makefile 2018-03-19 19:56:02 +01:00
mt7621-gpio staging: mt7621-gpio: remove redundant owner assignments of drivers 2018-03-22 18:15:34 +01:00
mt7621-mmc staging: mt7621-mmc: MIPS: ralink: add sdhci for mt7620a SoC 2018-03-19 19:56:02 +01:00
mt7621-pci staging: mt7621-pci: MIPS/ralink: add MT7621 pcie driver 2018-03-19 19:56:01 +01:00
mt7621-pinctrl staging: mt7621-pinctrl: ralink: add pinctrl driver 2018-03-19 19:56:02 +01:00
mt7621-spi staging: mt7621-spi: add mt7621 support 2018-03-19 19:56:02 +01:00
ncpfs Staging/IIO patches for 4.16-rc1 2018-02-01 09:51:57 -08:00
netlogic staging: net: netlogic: Remove unneeded cast 2018-02-22 14:59:05 +01:00
nvec staging: nvec: remove redundant license text 2018-01-15 16:03:45 +01:00
octeon staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
octeon-usb staging: octeon-usb: use __delay() instead of cvmx_wait() 2017-11-28 14:36:46 +01:00
olpc_dcon staging: olpc_dcon: Line up parentheses in func calls and defs 2017-12-06 10:00:30 +01:00
pi433 staging: pi433: fix CamelCase for dagc enum 2018-03-19 19:46:51 +01:00
rtl8188eu staging:r8188eu: Use lib80211 to support TKIP 2018-03-14 13:06:24 +01:00
rtl8192e staging: rtl8192e: Add spaces around operators. 2018-03-06 04:07:48 -08:00
rtl8192u staging: rtl8192u: Replace printk() with more standardize output format. 2018-03-08 09:56:15 -08:00
rtl8712 staging: rtl8712: remove unnecessary parentheses 2018-03-06 04:03:44 -08:00
rtl8723bs staging: rtl8723bs: core: rtw_cmd: remove unnecessary initialization 2018-03-14 13:01:17 +01:00
rtlwifi staging: rtlwifi: Remove nonessential semicolon 2018-03-06 04:01:11 -08:00
rts5208 staging: rts5208: Fix "seg_no" calculation in reset_ms_card() 2018-01-22 15:21:09 +01:00
skein License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sm750fb staging: sm750fb: Remove typedef 2018-03-19 17:14:40 +01:00
speakup staging: speakup: Add blank line after declaration 2018-03-19 17:14:40 +01:00
typec staging: typec: remove redundant license text 2018-01-15 16:03:44 +01:00
unisys staging: unisys: visorinput: use the full 80 characters of the screen 2018-02-16 15:42:22 +01:00
vboxvideo drm/graphics pull request for v4.16-rc1 2018-02-01 17:48:47 -08:00
vc04_services staging: vc04_services: Add outstanding VCHI TODOs 2018-03-22 18:15:34 +01:00
vme Staging/IIO patches for 4.16-rc1 2018-02-01 09:51:57 -08:00
vt6655 staging: vt6655: Fix style violation for line ending in '(' 2018-03-06 04:01:11 -08:00
vt6656 staging: vt6656: Remove unnecessary 'out of memory' message 2018-02-16 15:41:27 +01:00
wilc1000 staging: wilc1000: destroy initialized mutex object 2018-03-19 19:45:31 +01:00
wlan-ng Staging: wlan-ng: fix unnecessary parantheses in prism2mgmt.c 2018-02-16 15:36:16 +01:00
xgifb staging: xgifb: vb_setmode: brace style fixes 2018-01-16 09:41:19 +01:00
Kconfig staging: mt7621-dts: add dts files 2018-03-19 19:56:02 +01:00
Makefile staging: mt7621-dts: add dts files 2018-03-19 19:56:02 +01:00