OSDN Git Service

uio: fix potential memory leak in error case
authorChengguang Xu <cgxu519@gmx.com>
Thu, 17 Jan 2019 09:27:46 +0000 (17:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 11:03:16 +0000 (12:03 +0100)
commit1e09cdd506c8833a9d52cb61009798660cff4051
tree9faa8077885b084848ba2bc6fd982c9668fbdff2
parentdcf9b50e2197133a0137b8194bae23e6eba70c14
uio: fix potential memory leak in error case

Should jump to lable err_infoopen when idev->info is NULL
in uio_open().

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c