Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-4.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata

Pull libata fixes from Tejun Heo:
"Two trivial fixes - one for a bug in the allocation failure path and
the other a compiler warning fix"

* 'for-4.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata:
ata: sata_mv: fix mis-conversion in mv_write_cached_reg()
ata: fix return value check in ahci_seattle_get_port_info()

+2 -2
+1 -1
drivers/ata/ahci_seattle.c
··· 137 137 u32 val; 138 138 139 139 plat_data = devm_kzalloc(dev, sizeof(*plat_data), GFP_KERNEL); 140 - if (IS_ERR(plat_data)) 140 + if (!plat_data) 141 141 return &ahci_port_info; 142 142 143 143 plat_data->sgpio_ctrl = devm_ioremap_resource(dev,
+1 -1
drivers/ata/sata_mv.c
··· 986 986 * Looks like a lot of fuss, but it avoids an unnecessary 987 987 * +1 usec read-after-write delay for unaffected registers. 988 988 */ 989 - laddr = (long)addr & 0xffff; 989 + laddr = (unsigned long)addr & 0xffff; 990 990 if (laddr >= 0x300 && laddr <= 0x33c) { 991 991 laddr &= 0x000f; 992 992 if (laddr == 0x4 || laddr == 0xc) {