]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: host: u132-hcd: Remove u132_static_list and list head u132_list
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Sat, 4 Apr 2020 17:41:02 +0000 (23:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Apr 2020 12:32:46 +0000 (14:32 +0200)
commit48ce9e4119ce24131d188746118e948e9e97fc1d
treeb2290f1d721d9974e730fc056ddd8c48e6626674
parentec47c6449a4e9840a14ca964cdab3c2185947fe4
usb: host: u132-hcd: Remove u132_static_list and list head u132_list

u132_static_list is a global list protected by u132_module_lock.
It is read in the u132_hcd_exit() function without holding the lock
thus may lead to data race.
However, it turns out that this list isn't used for anything useful
and thus it is okay to get rid of it.
Thus, remove the u132_static_list from u132-hcd module.
Also remove struct list_head u132_list from struct u132.

Found by Linux Driver Verification project (linuxtesting.org).

Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Link: https://lore.kernel.org/r/20200404174102.19862-1-madhuparnabhowmik10@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/u132-hcd.c