Re: [PATCH] m68k: set proper major_num when specifying module param major_num

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

 



On 2/6/19 12:40 AM, Geert Uytterhoeven wrote:
Hi Chengguang,

On Fri, Feb 1, 2019 at 4:26 AM Chengguang Xu <cgxu519@xxxxxxx> wrote:
When calling register_blkdev() with specified major
device number, the return code is 0 on success.
So it seems not correct direct assign return code to
variable major_num in this case.

Nice catch!

Signed-off-by: Chengguang Xu <cgxu519@xxxxxxx>

Reviewed-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Do you want me to take this patch through the m68k tree, or Jens
through the block tree?

I can queue it up.

-- 
Jens Axboe




[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux