mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drbd: We can not process BIOs with a size of 0
Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]>
This commit is contained in:
parent
cd88d030d4
commit
d07c9c10e5
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue