diff options
author | Bo Yan <byan@nvidia.com> | 2018-03-13 11:24:31 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-14 18:05:34 +0100 |
commit | 57adbeea6451cedfeda257fe77749512894dff29 (patch) | |
tree | 123331e207e9565f22f25024c921af5321f68f2d /drivers/fsi/fsi-master.h | |
parent | 831c326fcd0e8e2a6ece952f898a1ec9b1dc1004 (diff) | |
download | talos-obmc-linux-57adbeea6451cedfeda257fe77749512894dff29.tar.gz talos-obmc-linux-57adbeea6451cedfeda257fe77749512894dff29.zip |
coresight: etm4x: Fix bit shifting
ctxid_pid and vmid_val in config are of type u64. When an integer
0xFF is being left shifted more than 32 bits, the behavior is
undefined. The fix is to specify 0xFF as an unsigned long.
Detected by Coverity scan: CID 37650, 37651 (Bad bit shift operation)
Signed-off-by: Bo Yan <byan@nvidia.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fsi/fsi-master.h')
0 files changed, 0 insertions, 0 deletions