diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-03-27 21:53:38 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-03-27 21:53:38 -0700 |
commit | b03b99a329a14b7302f37c3ea6da3848db41c8c5 (patch) | |
tree | 7f4d5164748558d07dbc39fad1c6e92ad0826c81 /drivers/nvdimm/dimm_devs.c | |
parent | c02ed2e75ef4c74e41e421acb4ef1494671585e8 (diff) | |
download | op-kernel-dev-b03b99a329a14b7302f37c3ea6da3848db41c8c5.zip op-kernel-dev-b03b99a329a14b7302f37c3ea6da3848db41c8c5.tar.gz |
acpi, nfit, libnvdimm: fix interleave set cookie calculation (64-bit comparison)
While reviewing the -stable patch for commit 86ef58a4e35e "nfit,
libnvdimm: fix interleave set cookie calculation" Ben noted:
"This is returning an int, thus it's effectively doing a 32-bit
comparison and not the 64-bit comparison you say is needed."
Update the compare operation to be immune to this integer demotion problem.
Cc: <stable@vger.kernel.org>
Cc: Nicholas Moulin <nicholas.w.moulin@linux.intel.com>
Fixes: 86ef58a4e35e ("nfit, libnvdimm: fix interleave set cookie calculation")
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/dimm_devs.c')
0 files changed, 0 insertions, 0 deletions