summaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorSasi Kumar <sasi.kumar@broadcom.com>2020-07-22 13:07:42 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-21 10:52:59 +0200
commit95dbb259370d441d7bc0695f8f9618df35842a5e (patch)
tree7cc7643af54ec63e0f7bd2b68b4a4e3fbb0c7019 /lib/dynamic_debug.c
parentd2685958d1407cae838bfcc587fb7c7317dcf79f (diff)
bdc: Fix bug causing crash after multiple disconnects
[ Upstream commit a95bdfd22076497288868c028619bc5995f5cc7f ] Multiple connects/disconnects can cause a crash on the second disconnect. The driver had a problem where it would try to send endpoint commands after it was disconnected which is not allowed by the hardware. The fix is to only allow the endpoint commands when the endpoint is connected. This will also fix issues that showed up when using configfs to create gadgets. Signed-off-by: Sasi Kumar <sasi.kumar@broadcom.com> Signed-off-by: Al Cooper <alcooperx@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions