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:	Wed, 10 Nov 2010 21:58:52 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	linux-scsi@...r.kernel.org, "Zou, Yi" <yi.zou@...el.com>,
	Joe Eykholt <jeykholt@...co.com>
Subject: [PATCH] fix the poll method of bsg file operations in Block layer
 SCSI generic driver

Though it looks like a typo, the check for POLLOUT is computed incorrectly.

Signed-off-by: Hillf Danton <dhillf@...il.com>
---

--- a/block/bsg.c	2010-09-13 07:07:38.000000000 +0800
+++ b/block/bsg.c	2010-11-10 21:40:30.000000000 +0800
@@ -874,6 +874,8 @@ static unsigned int bsg_poll(struct file
 	if (!list_empty(&bd->done_list))
 		mask |= POLLIN | POLLRDNORM;
 	if (bd->queued_cmds >= bd->max_queue)
+		;
+	else
 		mask |= POLLOUT;
 	spin_unlock_irq(&bd->lock);
--
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