[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165153836363.24053.6805660896758836737.b4-ty@oracle.com>
Date: Mon, 2 May 2022 20:51:23 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: cgel.zte@...il.com, kashyap.desai@...adcom.com,
sumit.saxena@...adcom.com
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
megaraidlinux.pdl@...adcom.com, linux-kernel@...r.kernel.org,
jejb@...ux.ibm.com, Zeal Robot <zealci@....com.cn>,
shivasharan.srikanteshwara@...adcom.com,
Lv Ruyi <lv.ruyi@....com.cn>, linux-scsi@...r.kernel.org
Subject: Re: [PATCH] megaraid: fix error check return value of register_chrdev()
On Mon, 18 Apr 2022 10:57:55 +0000, cgel.zte@...il.com wrote:
> From: Lv Ruyi <lv.ruyi@....com.cn>
>
> 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
Powered by blists - more mailing lists