lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAJNi4rOaCLfZhiMOB1+5qOpmBV2h+W3CGUZHy-qF=rSszWqMiA@mail.gmail.com>
Date:   Thu, 23 Jul 2020 13:17:01 +0800
From:   richard clark <richard.xnu.clark@...il.com>
To:     linux-block@...r.kernel.org
Cc:     Jens Axboe <axboe@...nel.dk>, linux-kernel@...r.kernel.org,
        xuesong chen <xuesong.cxs@...baba-inc.com>
Subject: [PATCH] Update the obsolete comments of 'register_blkdev' func

>From the code of 'register_blkdev(...)', the major number range

should be in [1..BLKDEV_MAJOR_HASH_SIZE-1] while not [1..BLKDEV_MAJOR_MAX]

in case of calling 'register_blkdev(...) with @major = 0, so correct

the wrong info of the function's comments


Signed-off-by: Richard Clark <richard.xnu.clark@...il.com>

Cc: Jens Axboe <axboe@...nel.dk>

Cc: xuesong chen <xuesong.cxs@...baba-inc.com>

---

 block/genhd.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/block/genhd.c b/block/genhd.c

index 8b1e9f48957c..db73aa852434 100644

--- a/block/genhd.c

+++ b/block/genhd.c

@@ -429,7 +429,7 @@ void blkdev_show(struct seq_file *seqf, off_t offset)

  *    then the function returns zero on success, or a negative error code

  *  - if any unused major number was requested with @major = 0 parameter

  *    then the return value is the allocated major number in range

- *    [1..BLKDEV_MAJOR_MAX-1] or a negative error code otherwise

+ *    [1..BLKDEV_MAJOR_HASH_SIZE-1] or a negative error code otherwise

  *

  * See Documentation/admin-guide/devices.txt for the list of allocated

  * major numbers.

--

2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ