summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-09-02 18:15:36 +0300
committerTom Rini <trini@konsulko.com>2017-09-03 22:30:33 +0300
commit52a5690efb034c16e1a81b4124c55aa27e3e0138 (patch)
treef393ee88eba909a156b608b3a21654759e94dbc6 /.travis.yml
parent37d46870b31724b71f593de3eda274e9ad8026d4 (diff)
downloadu-boot-52a5690efb034c16e1a81b4124c55aa27e3e0138.tar.xz
nvme: Fix potential sign extension issue in nvme_blk_rw()
"lbas" with type "u16" (16 bits, unsigned) is promoted in "lbas << ns->lba_shift" to type "int" (32 bits, signed), then sign-extended to type "unsigned long long" (64 bits, unsigned). If "lbas << ns->lba_shift" is greater than 0x7FFFFFFF, the upper bits of the result will all be 1. Fix it by casting "lbas" to "u32". Reported-by: Coverity (CID: 166730) Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions