diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-03-28 04:53:38 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-21 07:31:20 (GMT) |
commit | 0b914aa8cdc68c4e97ee48e5143cecd514cf1e6d (patch) | |
tree | 3bb64447daa63805052e7ccc07a0e0b2a0921ca3 /net/ipx/ipx_proc.c | |
parent | 5e29a45f1ef042a87933c0a72eb84fbc490358fa (diff) | |
download | linux-0b914aa8cdc68c4e97ee48e5143cecd514cf1e6d.tar.xz |
acpi, nfit, libnvdimm: fix interleave set cookie calculation (64-bit comparison)
commit b03b99a329a14b7302f37c3ea6da3848db41c8c5 upstream.
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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipx/ipx_proc.c')
0 files changed, 0 insertions, 0 deletions