From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dejin Zheng Subject: Re: [PATCH v1] drm/bochs: fix an issue of ioremap() leak Date: Thu, 23 Apr 2020 22:14:16 +0800 Message-ID: <20200423141416.GA1562@nuc8i5> References: <20200421164543.16605-1-zhengdejin5@gmail.com> <20200422135215.GA25950@nuc8i5> <20200422152142.GA26943@nuc8i5> <20200423101420.ityynrorrehjvxrs@sirius.home.kraxel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20200423101420.ityynrorrehjvxrs@sirius.home.kraxel.org> Sender: linux-kernel-owner@vger.kernel.org To: Gerd Hoffmann Cc: Andy Shevchenko , David Airlie , Daniel Vetter , virtualization@lists.linux-foundation.org, dri-devel , Linux Kernel Mailing List List-Id: virtualization@lists.linuxfoundation.org On Thu, Apr 23, 2020 at 12:14:20PM +0200, Gerd Hoffmann wrote: > Hi, > > > I am a newbie, andy gave me some directions to submit the patch, eg: check > > ioremap leak. At this time, I found that the bochs driver may have similar > > problems, so I submitted this patch, then, Andy said the best is to switch > > this driver to use pcim _ * () functions and drop tons of legacy code. > > I think we might be able to fix this issue first, after that, drop tons > > of legacy code by pcim_*() functions. Can you give me some suggestions? > > thank you very much! > > drm has drmm_* functions for that. Daniel Vetter has > a patch series pending switching lots of drivers over and IIRC it fixes > this bug too. > Gerd, Thanks for your info and abandon this commit. BR, Dejin > cheers, > Gerd >