Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d07c9c10 authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: We can not process BIOs with a size of 0

parent cd88d030
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;