RE: [PATCH v5] driver: uio: fix possible memory leak in uio_open

2019-01-31 Thread liujian (CE)
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Thursday, January 31, 2019 11:36 PM > To: liujian (CE) > Cc: xiu...@redhat.com; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v5] driver: uio: fix possible memory leak in uio_open &

Re: [PATCH v5] driver: uio: fix possible memory leak in uio_open

2019-01-31 Thread Greg KH
On Wed, Jan 23, 2019 at 06:38:24AM +0800, Liu Jian wrote: > If 'idev->info' is NULL, we need to free 'listener' > > Fixes: 57c5f4df0a5a ("uio: fix crash after the device is unregistered") > Signed-off-by: Liu Jian > --- > v1->v2: > rename the "err_infoopen" to "err_idev_info" > v2->3: > put the