Loading security/pfe/pfk.c +4 −4 Original line number Diff line number Diff line Loading @@ -153,8 +153,8 @@ static int pfk_get_page_index(const struct bio *bio, pgoff_t *page_index) if (!bio || !page_index) return -EPERM; /* check bio vec count > 0 before using the bio->bi_io_vec[] array */ if (!bio->bi_vcnt) /* check bio bi_size > 0 before using the bio->bi_io_vec[] array */ if (!(bio->bi_iter).bi_size) return -EINVAL; if (!bio->bi_io_vec) return -EINVAL; Loading Loading @@ -183,8 +183,8 @@ static struct inode *pfk_bio_get_inode(const struct bio *bio) { if (!bio) return NULL; /* check bio vec count > 0 before using the bio->bi_io_vec[] array */ if (!bio->bi_vcnt) /* check bio bi_size > 0 before using the bio->bi_io_vec[] array */ if (!(bio->bi_iter).bi_size) return NULL; if (!bio->bi_io_vec) return NULL; Loading Loading
security/pfe/pfk.c +4 −4 Original line number Diff line number Diff line Loading @@ -153,8 +153,8 @@ static int pfk_get_page_index(const struct bio *bio, pgoff_t *page_index) if (!bio || !page_index) return -EPERM; /* check bio vec count > 0 before using the bio->bi_io_vec[] array */ if (!bio->bi_vcnt) /* check bio bi_size > 0 before using the bio->bi_io_vec[] array */ if (!(bio->bi_iter).bi_size) return -EINVAL; if (!bio->bi_io_vec) return -EINVAL; Loading Loading @@ -183,8 +183,8 @@ static struct inode *pfk_bio_get_inode(const struct bio *bio) { if (!bio) return NULL; /* check bio vec count > 0 before using the bio->bi_io_vec[] array */ if (!bio->bi_vcnt) /* check bio bi_size > 0 before using the bio->bi_io_vec[] array */ if (!(bio->bi_iter).bi_size) return NULL; if (!bio->bi_io_vec) return NULL; Loading