Re: [PATCH][SCSI] target: Fix double test of inquiry_prod

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

 



On Mon, 2011-05-23 at 10:20 -0700, Roland Dreier wrote:
> On Wed, Apr 27, 2011 at 9:07 AM, Roland Dreier <roland@xxxxxxxxxx> wrote:
> > From: Roland Dreier <roland@xxxxxxxxxxxxxxx>
> >
> > The code really intends to make sure that neither inquiry_prod nor
> > inquiry_rev is NULL.
> >
> > Signed-off-by: Roland Dreier <roland@xxxxxxxxxxxxxxx>
> > ---
> >  drivers/target/target_core_transport.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
> > index 9583b23..4a03098 100644
> > --- a/drivers/target/target_core_transport.c
> > +++ b/drivers/target/target_core_transport.c
> > @@ -1725,7 +1725,7 @@ struct se_device *transport_add_device_to_core_hba(
> >         * setup.
> >         */
> >        if (TRANSPORT(dev)->transport_type != TRANSPORT_PLUGIN_PHBA_PDEV) {
> > -               if (!(inquiry_prod) || !(inquiry_prod)) {
> > +               if (!inquiry_prod || !inquiry_rev) {
> >                        printk(KERN_ERR "All non TCM/pSCSI plugins require"
> >                                " INQUIRY consts\n");
> >                        goto out;
> >
> 
> Hi Nick, did you ever get a chance to look at this?  Seems pretty obvious to me.

Hey Roland,

This has been included in upstream LIO v4.1, and I have been intending
to include in a non-critical for-40 series (post for-40 round 1 +
iscsi-target merge) later this week along with some of Andy's other
target core cleanups and improvements that have been merged into LIO
upstream.

James, would you mind including Roland's patch directly in scsi-misc
with my signoff after you merge the outstanding target for-40 series
items..?

Thanks,

--nab

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux