Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Dan Carpenter <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information