OSDN Git Service

drm: fix the usage after free
authorMathias Tillman <master.homer@gmail.com>
Mon, 24 Aug 2015 03:56:13 +0000 (11:56 +0800)
committerChristian König <christian.koenig@amd.com>
Mon, 24 Aug 2015 09:11:20 +0000 (11:11 +0200)
commit5c42b5e36a4a02e579ec5dcdc3a95ce58538224c
tree2938a5b0080f6e8faf8efbac47166494be153290
parent1eba47a76365576447d6346868a074dca24de1bf
drm: fix the usage after free

For readdir_r(), the next directory entry is returned in caller-allocted
buffer (pointered by pent here).

https://bugs.freedesktop.org/show_bug.cgi?id=91704

Signed-off-by: Mathias Tillman <master.homer@gmail.com>
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
xf86drm.c