Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
acpi, nfit, libnvdimm: fix interleave set cookie calculation (64-bit …
…comparison) While reviewing the -stable patch for commit 86ef58a "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: <[email protected]> Cc: Nicholas Moulin <[email protected]> Fixes: 86ef58a ("nfit, libnvdimm: fix interleave set cookie calculation") Reported-by: Ben Hutchings <[email protected]> Signed-off-by: Dan Williams <[email protected]>
- Loading branch information