diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2017-12-02 01:03:59 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-12-08 10:59:57 -0500 |
commit | 188a212df1f3a2d7ea9bb0fc0ab4173042c23470 (patch) | |
tree | d6901e4be9de3cbf7a079c40cf823373482c6ef7 /drivers/iio/adc/ti-adc128s052.c | |
parent | 61e06e2c3ebd986050958513bfa40dceed756f8f (diff) |
dm raid: add component device size checks to avoid runtime failure
Check all component data device sizes versus calculated size.
Reject if device(s) are too small. Otherwise, MD will fail the
operation by accessing beyond the end of the data device.
An example use-case is that growing bitmap won't fit any more and the MD
runtime will report an error when DM raid should catch this earlier.
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/iio/adc/ti-adc128s052.c')
0 files changed, 0 insertions, 0 deletions