Re: [PATCH mdadm v1 05/14] monitor: Avoid segfault when calling NULL get_bad_blocks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu,  9 Jun 2022 15:11:21 -0600
Logan Gunthorpe <logang@xxxxxxxxxxxx> wrote:

> Not all struct superswitch implement a get_bad_blocks() function,
> yet mdmon seems to call it without checking for NULL and thus
> occasionally segfaults in the test 10ddf-geometry.
> 
> Fix this by checking for NULL before calling it.
> 
> Signed-off-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>
> ---

Acked-by: Mariusz Tkaczyk <mariusz.tkaczyk@xxxxxxxxxxxxxxx>



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux