mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
acpi, nfit, libnvdimm: fix interleave set cookie calculation (64-bit comparison)
commitb03b99a329upstream. While reviewing the -stable patch for commit86ef58a4e3"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: Nicholas Moulin <nicholas.w.moulin@linux.intel.com> Fixes:86ef58a4e3("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5e29a45f1e
commit
0b914aa8cd
1 changed files with 5 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue