Skip to content
Commit f2945262 authored by Dan Carpenter's avatar Dan Carpenter Committed by Rusty Russell
Browse files

lguest: dereferencing freed mem in add_eventfd()



"new" was freed and then dereferenced.  Also the return value wasn't being
used so I modified the caller as well.

Compile tested only.  Found by smatch (http://repo.or.cz/w/smatch.git).

regards,
dan carpenter

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 658874f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment