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-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 27 Nov 2013 16:59:17 +0000
From:	Hartley Sweeten <HartleyS@...ionengravers.com>
To:	Hartley Sweeten <HartleyS@...ionengravers.com>,
	Dave Jones <davej@...hat.com>,
	"dan.carpenter@...cle.com" <dan.carpenter@...cle.com>
CC:	"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
	Greg KH <gregkh@...uxfoundation.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: RE: staging: comedi: Fix boolean/logical and mix-up.

On Wednesday, November 27, 2013 9:39 AM, Hartley Sweeten wrote:
> On Tuesday, November 26, 2013 7:57 PM, Dave Jones wrote:
>> Introduced in commit b3ff824a81e8.
>>
>> Signed-off-by: Dave Jones <davej@...oraproject.org>
>>
>> diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi/drivers/pcl730.c
>> index d041b714db29..2baaf1db6fbf 100644
>> --- a/drivers/staging/comedi/drivers/pcl730.c
>> +++ b/drivers/staging/comedi/drivers/pcl730.c
>> @@ -173,11 +173,11 @@ static int pcl730_do_insn_bits(struct comedi_device *dev,
>>  	if (mask) {
>>  		if (mask & 0x00ff)
>>  			outb(s->state & 0xff, dev->iobase + reg);
>> -		if ((mask & 0xff00) & (s->n_chan > 8))
>> +		if ((mask & 0xff00) && (s->n_chan > 8))
>>  			outb((s->state >> 8) & 0xff, dev->iobase + reg + 1);
>> -		if ((mask & 0xff0000) & (s->n_chan > 16))
>> +		if ((mask & 0xff0000) && (s->n_chan > 16))
>>  			outb((s->state >> 16) & 0xff, dev->iobase + reg + 2);
>> -		if ((mask & 0xff000000) & (s->n_chan > 24))
>> +		if ((mask & 0xff000000) && (s->n_chan > 24))
>>  			outb((s->state >> 24) & 0xff, dev->iobase + reg + 3);
>>  	}
>
> My bad...
>
> Added Greg KH and the staging devel list to the CCs.
>
> Acked-by: H Hartley Sweeten <hsweeten@...ionengravers.com>

 Dave,

I just noticed that Dan Carpenter already submitted a patch that fixed this.
It was merged as commit 9382c06e2d192adec090fb09ff0b699e951f88e1.

Hartley
_______________________________________________
devel mailing list
devel@...uxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
--
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