]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/nouveau: fix notify data leak
authorLucas Stach <dev@lynxeye.de>
Wed, 26 Oct 2016 11:11:06 +0000 (13:11 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:37 +0000 (14:04 +1000)
commit8423d75d8f15b8eba52f064707ee7892fba77837
treeadd0773b35e8c7bdaae9c0074ce34be311c2cc3d
parent9a47a657bdf2c5f6e718ef8716d2e3985cc8b87b
drm/nouveau: fix notify data leak

There is no reason to not free the notify data if the NTFY_DEL ioctl
failed. As nvif_notify_fini() is also called from the cleanup path of
nvif_notify_init(), the notifier may not have been successfully created
at that point. But it should also be the right thing to just free the
data in the regular fini calls, as there is nothing much we can do if
the ioctl fails, so better not leak memory.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvif/notify.c