diff options
| author | Neil Brown <[email protected]> | 2006-08-05 12:14:29 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-08-06 08:57:47 -0700 |
| commit | 2f34931fdc78b4895553aaa33748939cc7697c99 (patch) | |
| tree | c94736005fd9b9b67515c9e5518b3543d58ff488 /scripts/patch-kernel | |
| parent | 9b7f750d446a717d4c8346fbb165b62661019b92 (diff) | |
[PATCH] knfsd: fix race related problem when adding items to and svcrpc auth cache
If we don't find the item we are lookng for, we allocate a new one, and
then grab the lock again and search to see if it has been added while we
did the alloc. If it had been added we need to 'cache_put' the newly
created item that we are never going to use. But as it hasn't been
initialised properly, putting it can cause an oops.
So move the ->init call earlier to that it will always be fully initilised
if we have to put it.
Thanks to Philipp Matthias Hahn <[email protected]>
for reporting the problem.
Signed-off-by: Neil Brown <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions