OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tick/broadcast: Prevent NULL pointer dereference
[uclinux-h8/linux.git]
/
block
/
blk-ioc.c
diff --git
a/block/blk-ioc.c
b/block/blk-ioc.c
index
242df01
..
1a27f45
100644
(file)
--- a/
block/blk-ioc.c
+++ b/
block/blk-ioc.c
@@
-68,7
+68,7
@@
static void ioc_destroy_icq(struct io_cq *icq)
* under queue_lock. If it's not pointing to @icq now, it never
* will. Hint assignment itself can race safely.
*/
* under queue_lock. If it's not pointing to @icq now, it never
* will. Hint assignment itself can race safely.
*/
- if (rcu_
dereference_raw
(ioc->icq_hint) == icq)
+ if (rcu_
access_pointer
(ioc->icq_hint) == icq)
rcu_assign_pointer(ioc->icq_hint, NULL);
ioc_exit_icq(icq);
rcu_assign_pointer(ioc->icq_hint, NULL);
ioc_exit_icq(icq);