mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Fix double free
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@977 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3122,8 +3122,6 @@ static int dev_user_exit_dev(struct scst_user_dev *dev)
|
||||
|
||||
TRACE_MGMT_DBG("Releasing completed (dev %p)", dev);
|
||||
|
||||
kfree(dev);
|
||||
|
||||
module_put(THIS_MODULE);
|
||||
|
||||
TRACE_EXIT();
|
||||
@@ -3133,7 +3131,6 @@ static int dev_user_exit_dev(struct scst_user_dev *dev)
|
||||
static int __dev_user_release(void *arg)
|
||||
{
|
||||
struct scst_user_dev *dev = (struct scst_user_dev *)arg;
|
||||
|
||||
dev_user_exit_dev(dev);
|
||||
kfree(dev);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user