[V2][PATCH net] tipc: fix the big/little endian issue in tipc_dest

2018-08-26 Thread Haiqing Bai
the endian issue. Fixes: a80ae5306a73 ("tipc: improve destination linked list") Signed-off-by: Zhenbo Gao Acked-by: Jon Maloy Signed-off-by: Haiqing Bai --- net/tipc/name_table.c | 10 -- net/tipc/name_table.h | 9 ++--- 2 files changed, 6 insertions(+), 13 deletions(-)

[V2][PATCH] ohci-hcd: Fix race condition caused by ohci_urb_enqueue() and io_watchdog_func()

2018-02-01 Thread Haiqing Bai
i->prev_frame_no is not overwritten while io_watchdog_func() is running. v2: Instead of adding an extra flag variable, defining IO_WATCHDOG_OFF as a special sentinel value for prev_frame_no. Signed-off-by: Shigeru Yoshida Signed-off-by: Haiqing Bai --- drivers/usb/host/ohci-hcd.c | 10 ++

[PATCH] ohci-hcd: Fix race condition caused by ohci_urb_enqueue() and io_watchdog_func()

2018-01-31 Thread Haiqing Bai
oduces timer_running flag to ohci_hcd structure. Setting true to ohci->timer_running indicates io_watchdog_func() is scheduled or is running. ohci_urb_enqueue() checks the flag when it schedules the watchdog (step 4 and 12 above), so ohci->prev_frame_no is not overwritten while io_watch