Files
linux/drivers
Dan Williams 0b914aa8cd acpi, nfit, libnvdimm: fix interleave set cookie calculation (64-bit comparison)
commit b03b99a329 upstream.

While reviewing the -stable patch for commit 86ef58a4e3 "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>
2017-04-21 09:31:20 +02:00
..
2016-12-05 14:53:46 -05:00
2017-03-12 06:41:45 +01:00
2017-04-12 12:41:11 +02:00
2016-09-27 12:33:47 +02:00
2017-02-23 17:44:36 +01:00
2017-04-12 12:41:18 +02:00
2016-09-20 20:57:12 +10:00
2017-03-30 09:41:24 +02:00
2017-03-30 09:41:28 +02:00