summaryrefslogtreecommitdiff
path: root/mac80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'mac80211.h')
0 files changed, 0 insertions, 0 deletions
gi/linux/net-next.git/diff/?id=aad9ae4550755edc020b5c511a8b54f0104b2f47&id2=f49e869a61829b8ac6eb069b3824f738cd0146e6'>diff)
dm switch: simplify conditional in alloc_region_table()
The variable sctx->nr_regions has type unsigned long and the variable nr_regions has type sector_t. Thus the variables may be different when overflow happens. Changed the conditional to "if (nr_regions >= ULONG_MAX)". Also move the assignment of nr_regions after sector_div() and the sanity check which looks more sane. Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Reviewed-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat