Skip to content
Commit fa9a89fc authored by Jay Freyensee's avatar Jay Freyensee Committed by Jens Axboe
Browse files

nvme: initialize variable before logical OR'ing it



It is typically not good coding or secure coding practice
to logical OR a variable without an initialization value first.
Here on this line:

integrity.flags |= BLK_INTEGRITY_DEVICE_CAPABLE;

BLK_INTEGRITY_DEVICE_CAPABLE is being OR'ed to a member variable
never set to an initial value. This patch fixes that.

Signed-off-by: default avatarJay Freyensee <james.p.freyensee@intel.com>
Reviewed-by: default avatarMing Lin <ming.l@samsung.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent f9cc4472
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment