Re: [PATCH] null_blk: remove duplicate 0 initialization

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

 



On 6/19/19 10:56 PM, Chaitanya Kulkarni wrote:
> In function null_add_dev() struct nullb *nullb member is allocated
> using kzalloc_node() which returns 0red memory.
> 
> In function setup_queues() which is called from the null_add_dev(), on
> successful queue allocation we set the nullb->nr_queues = 0 which is not
> needed due to earlier use of kzalloc_node().

Applied, thanks.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux