lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 1 Mar 2010 18:54:41 +1100
From:	Stephen Rothwell <sfr@...b.auug.org.au>
To:	Greg KH <greg@...ah.com>
Cc:	linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
	"Martin K. Petersen" <martin.petersen@...cle.com>,
	Jens Axboe <jens.axboe@...cle.com>,
	Alan Stern <stern@...land.harvard.edu>
Subject: linux-next: manual merge of the usb tree with the block tree

Hi Greg,

Today's linux-next merge of the usb tree got a conflict in
drivers/usb/storage/scsiglue.c between commit
086fa5ff0854c676ec333760f4c0154b3b242616 ("block: Rename
blk_queue_max_sectors to blk_queue_max_hw_sectors") from the block tree
and commit 628726dbb5ebbec77336019ac4e1f60cf3ba08c1 ("usb-storage: use
max_hw_sectors instead of max_sectors") from the usb tree.

Just context changes.  I fixed it up (see below) and can carry the fix as
necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@...b.auug.org.au

diff --cc drivers/usb/storage/scsiglue.c
index aadc16b,354c38e..0000000
--- a/drivers/usb/storage/scsiglue.c
+++ b/drivers/usb/storage/scsiglue.c
@@@ -133,8 -133,8 +133,8 @@@ static int slave_configure(struct scsi_
  
  		if (us->fflags & US_FL_MAX_SECTORS_MIN)
  			max_sectors = PAGE_CACHE_SIZE >> 9;
- 		if (queue_max_sectors(sdev->request_queue) > max_sectors)
+ 		if (queue_max_hw_sectors(sdev->request_queue) > max_sectors)
 -			blk_queue_max_sectors(sdev->request_queue,
 +			blk_queue_max_hw_sectors(sdev->request_queue,
  					      max_sectors);
  	} else if (sdev->type == TYPE_TAPE) {
  		/* Tapes need much higher max_sector limits, so just
@@@ -494,9 -494,9 +494,9 @@@ static ssize_t store_max_sectors(struc
  	struct scsi_device *sdev = to_scsi_device(dev);
  	unsigned short ms;
  
- 	if (sscanf(buf, "%hu", &ms) > 0 && ms <= SCSI_DEFAULT_MAX_SECTORS) {
+ 	if (sscanf(buf, "%hu", &ms) > 0) {
 -		blk_queue_max_sectors(sdev->request_queue, ms);
 +		blk_queue_max_hw_sectors(sdev->request_queue, ms);
- 		return strlen(buf);
+ 		return count;
  	}
  	return -EINVAL;	
  }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ