aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorOliver Neukum <[email protected]>2019-08-27 12:34:36 +0200
committerGreg Kroah-Hartman <[email protected]>2019-08-28 22:48:38 +0200
commit1426bd2c9f7e3126e2678e7469dca9fd9fc6dd3e (patch)
treec48d407e0d789e6022d0003c0312de7d08fe5960 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent636bd02a7ba9025ff851d0cfb92768c8fa865859 (diff)
USB: cdc-wdm: fix race between write and disconnect due to flag abuse
In case of a disconnect an ongoing flush() has to be made fail. Nevertheless we cannot be sure that any pending URB has already finished, so although they will never succeed, they still must not be touched. The clean solution for this is to check for WDM_IN_USE and WDM_DISCONNECTED in flush(). There is no point in ever clearing WDM_IN_USE, as no further writes make sense. The issue is as old as the driver. Fixes: afba937e540c9 ("USB: CDC WDM driver") Reported-by: [email protected] Signed-off-by: Oliver Neukum <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions