Re: [PATCH] megaraid: fix error check return value of register_chrdev()

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

 



On Mon, 18 Apr 2022 10:57:55 +0000, cgel.zte@xxxxxxxxx wrote:

> From: Lv Ruyi <lv.ruyi@xxxxxxxxxx>
> 
> If major equal 0, register_chrdev() returns error code when it fails.
> This function dynamically allocate a major and return its number on
> success, so we should use "< 0" to check it instead of "!".
> 
> 
> [...]

Applied to 5.19/scsi-queue, thanks!

[1/1] megaraid: fix error check return value of register_chrdev()
      https://git.kernel.org/mkp/scsi/c/c5acd61dbb32

-- 
Martin K. Petersen	Oracle Linux Engineering



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux