diff options
author | 2017-08-18 14:34:16 +0100 | |
---|---|---|
committer | 2017-08-20 11:08:41 -0700 | |
commit | 34ff1bf4920471cff66775dc39537b15c5f0feff (patch) | |
tree | c544b6700149cc5133e22f3c3a93c7f761d61d2a /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | staging: pi433: fixed coding style issues (diff) | |
download | wireguard-linux-34ff1bf4920471cff66775dc39537b15c5f0feff.tar.xz wireguard-linux-34ff1bf4920471cff66775dc39537b15c5f0feff.zip |
staging/rts5208: fix incorrect shift to extract upper nybble
The mask of sns_key_info1 suggests the upper nybble is being extracted
however the following shift of 8 bits is too large and always results in
0. Fix this by shifting only by 4 bits to correctly get the upper nybble.
Detected by CoverityScan, CID#142891 ("Operands don't affect result")
Fixes: fa590c222fba ("staging: rts5208: add support for rts5208 and rts5288")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions