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)
commit98d8ba69ff1ac168e73ac509228c4701bf6c3b87
treeeee2ed68f1cfb686ae43265403357da2e9ac7544
parent8b5d143c95533aa18ac3b39b82568391a7225a61
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