]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
nvme: precedence bug in nvme_pr_clear()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Dec 2015 10:24:06 +0000 (13:24 +0300)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:59:03 +0000 (08:59 -0700)
commite121a20b873c3742cb40a8eccf92c062ce61d586
tree23289d2b22a861424dea611ae61afbd402dab530
parent4b6598a0983fb1b217ab671461ccffbe4508acd5
nvme: precedence bug in nvme_pr_clear()

BugLink: http://bugs.launchpad.net/bugs/1531539
The "|" operator has higher precedence than "?:" so this didn't work as
intended.  I had previously fixed this bug, but it we copied the older
unfixed version when we moved the function between files.

Fixes: 1673f1f08c88 ('nvme: move block_device_operations and ns/ctrl freeing to common code')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 8c0b39155048d5a24f25c6c60aa83729927b04cd)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/nvme/host/core.c