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
| ||
|
Date: Mon, 19 Jul 2010 16:23:58 +0800 From: August <august.seu@...il.com> To: netdev@...r.kernel.org Subject: RTL8180 : improper usage of dma_addr_t linux-kernel-version : 2.6.34 drivers/net/wireless/rtl818x/rtl8180_dev.c __LINE__ : 500 cpu_to_le32((u32)dma + ((i + 1) % entries) * sizeof(*ring)); Although in the x86 infrastruct, the value of dma_addr == line addr, it is inproper usage here. suggestion: cpu_to_le32((u32)(&priv[0]) + ((i + 1) % entries) * sizeof(*ring)); -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists