summaryrefslogtreecommitdiff
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2019-01-06 21:06:25 +1100
committerMike Snitzer <snitzer@redhat.com>2019-03-05 14:48:52 -0500
commit0bdb50c531f7377a9da80d3ce2d61f389c84cb30 (patch)
tree73c7dc72106541c696fa61e40c2484eddd443987 /net/sctp/protocol.c
parentd2832376b69e1e02cae0de660ab7c03223f09341 (diff)
dm: fix to_sector() for 32bit
A dm-raid array with devices larger than 4GB won't assemble on a 32 bit host since _check_data_dev_sectors() was added in 4.16. This is because to_sector() treats its argument as an "unsigned long" which is 32bits (4GB) on a 32bit host. Using "unsigned long long" is more correct. Kernels as early as 4.2 can have other problems due to to_sector() being used on the size of a device. Fixes: 0cf4503174c1 ("dm raid: add support for the MD RAID0 personality") cc: stable@vger.kernel.org (v4.2+) Reported-and-tested-by: Guillaume Perréal <gperreal@free.fr> Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'net/sctp/protocol.c')
0 files changed, 0 insertions, 0 deletions