Re: [PATCH v2 36/36] target: Avoid that XCOPY commands trigger a deadlock

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

 



On Mon, 2017-02-06 at 01:32 -0800, Christoph Hellwig wrote:
> > -	int rc;
> > +	int rc = -1;
> 
> Instead of relying on -1 or memcmp return values in rc I'd suggest
> to use found_dev;
> 
> 
> 	*found_dev = NULL;
> 
> 	...
> 
> 
> 	if (!memcmp(&tmp_dev_wwn[0], dev_wwn, XCOPY_NAA_IEEE_REGEX_LEN)) {
> 		*found_dev = se_dev;
> 		target_get_device(se_dev);
> 		break;
> 	}
> 
> 	...

Hello Christoph,

I will make the proposed changes.

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




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux