drm/lease: fix WARNING in idr_destroy
authorQiujun Huang <hqjagain@gmail.com>
Wed, 18 Mar 2020 07:53:50 +0000 (15:53 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Mar 2020 13:42:18 +0000 (14:42 +0100)
commitb216a8e7908cd750550c0480cf7d2b3a37f06954
tree89776515785edde686c9413d31a7c59d3e8a023d
parent8c34cd1a7f089dc03933289c5d4a4d1489549828
drm/lease: fix WARNING in idr_destroy

drm_lease_create takes ownership of leases. And leases will be released
by drm_master_put.

drm_master_put
    ->drm_master_destroy
            ->idr_destroy

So we needn't call idr_destroy again.

Reported-and-tested-by: syzbot+05835159fe322770fe3d@syzkaller.appspotmail.com
Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1584518030-4173-1-git-send-email-hqjagain@gmail.com
drivers/gpu/drm/drm_lease.c