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

Commit 92ae1289 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "security: pfk: use page_mapping to avoid wrong memory access"

parents e9d1c276 1158db35
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -220,11 +220,7 @@ static struct inode *pfk_bio_get_inode(const struct bio *bio)
	if (!page_mapping(bio->bi_io_vec->bv_page))
	if (!page_mapping(bio->bi_io_vec->bv_page))
		return NULL;
		return NULL;


	if (!bio->bi_io_vec->bv_page->mapping->host)
	return page_mapping(bio->bi_io_vec->bv_page)->host;

		return NULL;

	return bio->bi_io_vec->bv_page->mapping->host;
}
}


/**
/**