]> git.baikalelectronics.ru Git - kernel.git/commit
block: Handle partition read errors more consistently
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 18 May 2022 03:38:37 +0000 (23:38 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Aug 2022 16:34:03 +0000 (12:34 -0400)
commitbd05afac0864ef8ad54beb0c751260f808dc58e9
treeeee2ed68f1cfb686ae43265403357da2e9ac7544
parent0ece9b0903d59388631713e0f713a99638ab0e1c
block: Handle partition read errors more consistently

Set p->v to NULL if we try to read beyond the end of the disk, just like
we do if we get an error returned from trying to read the disk.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
block/partitions/core.c