aboutsummaryrefslogtreecommitdiff
path: root/drivers/isdn
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2013-11-22 19:52:06 -0500
committerBen Hutchings <ben@decadent.org.uk>2014-01-03 04:33:29 +0000
commita86ed8caf2fda2069ed910b42f80d7e7b7bc49d1 (patch)
treeba9014a0cb375d89d59c8363e6261f0aca7ee975 /drivers/isdn
parent8bd981aa4b609d3c97fceb4d81b212b68952b29c (diff)
dm table: fail dm_table_create on dm_round_up overflow
commit 5b2d06576c5410c10d95adfd5c4d8b24de861d87 upstream. The dm_round_up function may overflow to zero. In this case, dm_table_create() must fail rather than go on to allocate an empty array with alloc_targets(). This fixes a possible memory corruption that could be caused by passing too large a number in "param->target_count". Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions