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  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:	Sun, 08 Nov 2009 20:27:02 +0100
From:	Krzysztof Halasa <>
To:, lkml <>
Subject: ata_sff_data_xfer* return value


I wonder if this is entirely correct? If so, why?
Only relevant parts left.

 *	Bytes consumed.
unsigned int ata_sff_data_xfer(struct ata_device *dev, unsigned char *buf,
			       unsigned int buflen, int rw)
	unsigned int words = buflen >> 1;


	/* Transfer trailing byte, if any. */
	if (unlikely(buflen & 0x01)) {

	return words << 1;

same here:

unsigned int ata_sff_data_xfer32(struct ata_device *dev, unsigned char *buf,
			       unsigned int buflen, int rw)
	return (buflen + 1) & ~1;

Please keep me in CC:, I'm not on the IDE list. Thanks.
Krzysztof Halasa
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists