Error when unloading g_serial module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Running kernel 5.4.23 on a RV1108 based board the following issue is
seen when removing the g_serial module.

[root@rv1108 ~]# rmmod g_serial
[root@rv1108 ~]#
[   78.090775] ------------[ cut here ]------------
[   78.091252] WARNING: CPU: 0 PID: 617 at
drivers/usb/gadget/function/u_serial.c:706 gs_close+0x8c/0x1e4
[u_serial]
[   78.092164] Modules linked in: usb_f_acm u_serial libcomposite
configfs zram zsmalloc emlog(O) wdtoken(O) clk_rk808 rtc_rk808
spi_rockchip [last unloaded: g_serial]
[   78.093529] CPU: 0 PID: 617 Comm: nm-online Tainted: G           O
    5.4.23 #41
[   78.094198] Hardware name: Rockchip (Device Tree)
[   78.094655] [<c0111100>] (unwind_backtrace) from [<c010c638>]
(show_stack+0x10/0x14)
[   78.095363] [<c010c638>] (show_stack) from [<c082b19c>]
(dump_stack+0xc0/0xd4)
[   78.096027] [<c082b19c>] (dump_stack) from [<c01357c8>] (__warn+0xe0/0xf8)
[   78.096655] [<c01357c8>] (__warn) from [<c0135890>]
(warn_slowpath_fmt+0xb0/0xb8)
[   78.097341] [<c0135890>] (warn_slowpath_fmt) from [<bf04ad8c>]
(gs_close+0x8c/0x1e4 [u_serial])
[   78.098137] [<bf04ad8c>] (gs_close [u_serial]) from [<c04f47cc>]
(tty_release+0xf0/0x47c)
[   78.098877] [<c04f47cc>] (tty_release) from [<c02afb14>] (__fput+0x88/0x214)
[   78.099517] [<c02afb14>] (__fput) from [<c01556a4>] (task_work_run+0xa4/0xc8)
[   78.100164] [<c01556a4>] (task_work_run) from [<c01397a4>]
(do_exit+0x3e4/0xac8)
[   78.100835] [<c01397a4>] (do_exit) from [<c013ad04>]
(do_group_exit+0x3c/0xc8)
[   78.101486] [<c013ad04>] (do_group_exit) from [<c013ada0>]
(__wake_up_parent+0x0/0x18)
[   78.102190] ---[ end trace f34de27d5eaf8688 ]---

Looks like port.count is not being correctly handled.

Does anyone have any suggestions on how we could fix this?

Thanks

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux