diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-11-03 22:50:49 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-11-03 12:59:03 -0700 |
commit | 73fcf4e20ebd19468b3ad033be93582258435462 (patch) | |
tree | 42033aec1c188a6730b12d13a12eb506dfcfe9e3 /block | |
parent | a6dd1020d8ac55782f3e04856644cf68765f8c1b (diff) |
NVMe: Precedence error in nvme_pr_clear()
The original code is equivalent to:
u32 cdw10 = (1 | key) ? 1 << 3 : 0;
But we want:
u32 cdw10 = 1 | (key ? 1 << 3 : 0);
Fixes: 1d277a637a71: ('NVMe: Add persistent reservation ops')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions