Re: [PATCH 1/1] bsg-lib: fix use-after-free under memory-pressure

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

 



On Mon, Sep 25, 2017 at 08:53:07AM -0700, Christoph Hellwig wrote:
> >  	if (!q)
> >  		return ERR_PTR(-ENOMEM);
> >  	q->cmd_size = sizeof(struct bsg_job) + dd_job_size;
> > -	q->init_rq_fn = bsg_init_rq;
> > -	q->exit_rq_fn = bsg_exit_rq;
> > +	q->init_rq_fn = bsg_init_job;
> > +	q->exit_rq_fn = bsg_exit_job;
> > +	q->initialize_rq_fn = bsg_init_rq;
> 
> Please use function names that match the method names, that is keep
> the existing names and name the new helper bsg_initialize_rq;
>

OK, I can change that.


                                                    Beste Grüße / Best regards,
                                                      - Benjamin Block

> 
> Except for that the patch looks fine to me:
> 
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>
> 

-- 
Linux on z Systems Development         /         IBM Systems & Technology Group
		  IBM Deutschland Research & Development GmbH 
Vorsitz. AufsR.: Martina Koederitz     /        Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: AmtsG Stuttgart, HRB 243294




[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