aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2015-05-14 11:34:48 +0300
committerKalle Valo <[email protected]>2015-05-26 13:54:23 +0300
commit191f1aeeb93bb58e56f4d1868294ae22f3f67d4e (patch)
tree167648df470def9ae6b4569a3db6cfe851387349 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent22f44150aad7a1d6b074ab6cf59abee61c7187c6 (diff)
ath9k_htc: memory corruption calling set_bit()
In d8a2c51cdcae ('ath9k_htc: Use atomic operations for op_flags') we changed things like this: - if (priv->op_flags & OP_TSF_RESET) { + if (test_bit(OP_TSF_RESET, &priv->op_flags)) { The problem is that test_bit() takes a bit number and not a mask. It means that when we do: set_bit(OP_TSF_RESET, &priv->op_flags); Then it sets the (1 << 6) bit instead of the 6 bit so we are setting a bit which is past the end of the unsigned long. Fixes: d8a2c51cdcae ('ath9k_htc: Use atomic operations for op_flags') Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions