Merge branch 'parisc-4.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixes and cleanups from Helge Deller: "Nothing really important in this patchset: fix resource leaks in error paths, coding style cleanups and code removal" * 'parisc-4.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Remove flush_user_dcache_range and flush_user_icache_range parisc: fix a printk parisc: ccio-dma: Handle return NULL error from ioremap_nocache parisc: Define access_ok() as macro parisc: eisa: Fix resource leaks in error paths parisc: eisa: Remove coding style errors
This commit is contained in:
@@ -1539,7 +1539,7 @@ static int __init ccio_probe(struct parisc_device *dev)
|
||||
ioc = kzalloc(sizeof(struct ioc), GFP_KERNEL);
|
||||
if (ioc == NULL) {
|
||||
printk(KERN_ERR MODULE_NAME ": memory allocation failure\n");
|
||||
return 1;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ioc->name = dev->id.hversion == U2_IOA_RUNWAY ? "U2" : "UTurn";
|
||||
@@ -1554,6 +1554,10 @@ static int __init ccio_probe(struct parisc_device *dev)
|
||||
|
||||
ioc->hw_path = dev->hw_path;
|
||||
ioc->ioc_regs = ioremap_nocache(dev->hpa.start, 4096);
|
||||
if (!ioc->ioc_regs) {
|
||||
kfree(ioc);
|
||||
return -ENOMEM;
|
||||
}
|
||||
ccio_ioc_init(ioc);
|
||||
ccio_init_resources(ioc);
|
||||
hppa_dma_ops = &ccio_ops;
|
||||
|
Reference in New Issue
Block a user