Re: [PATCH v3] tty: 8250: fix a missing check for pci_ioremap_bar

2019-03-24 Thread Andy Shevchenko
On Sun, Mar 24, 2019 at 11:09:00AM -0500, Aditya Pakki wrote: > pci_ioremap_bar could fail. The patch returns in case of failure to > acquire IOMEM. It also releases the acquired resource in the exit path. Thanks for an update. Almost, but one think below. > > Signed-off-by: Aditya Pakki > >

[PATCH v3] tty: 8250: fix a missing check for pci_ioremap_bar

2019-03-24 Thread Aditya Pakki
pci_ioremap_bar could fail. The patch returns in case of failure to acquire IOMEM. It also releases the acquired resource in the exit path. Signed-off-by: Aditya Pakki --- v2: Failed to release resource in exit path and incorrect code in non DMA case, suggested by Andy Shevchenko v1: Missed