Merge tag 'spi-v3.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi

Pull spi updates from Mark Brown:
"A few last minute SPI updates: fix a missized allocation and use
atomic allocations in atomic context in the PXA driver, and fix the
checking of return codes in the S3C64xx driver which caused spurious
errors under heavy load."

* tag 'spi-v3.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi/pxa2xx: fix memory corruption due to wrong size used in devm_kzalloc()
spi/pxa2xx: use GFP_ATOMIC in sg table allocation
spi: s3c64xx: Fix pm_runtime_get_sync() return value check

Changed files
+3 -3
drivers
+1 -1
drivers/spi/spi-pxa2xx-dma.c
··· 59 int ret; 60 61 sg_free_table(sgt); 62 - ret = sg_alloc_table(sgt, nents, GFP_KERNEL); 63 if (ret) 64 return ret; 65 }
··· 59 int ret; 60 61 sg_free_table(sgt); 62 + ret = sg_alloc_table(sgt, nents, GFP_ATOMIC); 63 if (ret) 64 return ret; 65 }
+1 -1
drivers/spi/spi-pxa2xx.c
··· 1075 acpi_bus_get_device(ACPI_HANDLE(&pdev->dev), &adev)) 1076 return NULL; 1077 1078 - pdata = devm_kzalloc(&pdev->dev, sizeof(*ssp), GFP_KERNEL); 1079 if (!pdata) { 1080 dev_err(&pdev->dev, 1081 "failed to allocate memory for platform data\n");
··· 1075 acpi_bus_get_device(ACPI_HANDLE(&pdev->dev), &adev)) 1076 return NULL; 1077 1078 + pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); 1079 if (!pdata) { 1080 dev_err(&pdev->dev, 1081 "failed to allocate memory for platform data\n");
+1 -1
drivers/spi/spi-s3c64xx.c
··· 444 } 445 446 ret = pm_runtime_get_sync(&sdd->pdev->dev); 447 - if (ret != 0) { 448 dev_err(dev, "Failed to enable device: %d\n", ret); 449 goto out_tx; 450 }
··· 444 } 445 446 ret = pm_runtime_get_sync(&sdd->pdev->dev); 447 + if (ret < 0) { 448 dev_err(dev, "Failed to enable device: %d\n", ret); 449 goto out_tx; 450 }