mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
drbd: We can not process BIOs with a size of 0
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
cd88d030d4
commit
d07c9c10e5
@ -1237,6 +1237,7 @@ read_in_block(struct drbd_conf *mdev, u64 id, sector_t sector, int data_size) __
|
||||
|
||||
data_size -= dgs;
|
||||
|
||||
ERR_IF(data_size == 0) return NULL;
|
||||
ERR_IF(data_size & 0x1ff) return NULL;
|
||||
ERR_IF(data_size > DRBD_MAX_BIO_SIZE) return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user