File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 13
13
#include <linux/slab.h>
14
14
15
15
static DEFINE_IDA (rpmb_ida );
16
- static DEFINE_MUTEX (rpmb_mutex );
17
16
18
17
/**
19
18
* rpmb_dev_get() - increase rpmb device ref counter
@@ -63,9 +62,7 @@ static void rpmb_dev_release(struct device *dev)
63
62
{
64
63
struct rpmb_dev * rdev = to_rpmb_dev (dev );
65
64
66
- mutex_lock (& rpmb_mutex );
67
65
ida_free (& rpmb_ida , rdev -> id );
68
- mutex_unlock (& rpmb_mutex );
69
66
kfree (rdev -> descr .dev_id );
70
67
kfree (rdev );
71
68
}
@@ -175,9 +172,7 @@ struct rpmb_dev *rpmb_dev_register(struct device *dev,
175
172
goto err_free_rdev ;
176
173
}
177
174
178
- mutex_lock (& rpmb_mutex );
179
175
ret = ida_alloc (& rpmb_ida , GFP_KERNEL );
180
- mutex_unlock (& rpmb_mutex );
181
176
if (ret < 0 )
182
177
goto err_free_dev_id ;
183
178
rdev -> id = ret ;
You can’t perform that action at this time.
0 commit comments