projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ec286
)
drbd: null dereference bug
author
Dan Carpenter
<
[email protected]
>
Sat, 23 Jan 2010 12:45:22 +0000
(15:45 +0300)
committer
Philipp Reisner
<
[email protected]
>
Mon, 25 Jan 2010 17:01:41 +0000
(18:01 +0100)
epoch is always NULL here.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Philipp Reisner <
[email protected]
>
drivers/block/drbd/drbd_receiver.c
patch
|
blob
|
history
diff --git
a/drivers/block/drbd/drbd_receiver.c
b/drivers/block/drbd/drbd_receiver.c
index f22a5283128a2906e5ce5ee624d9fe3da414271c..d065c646b35a06fe9fba171864951efbe12e405d 100644
(file)
--- a/
drivers/block/drbd/drbd_receiver.c
+++ b/
drivers/block/drbd/drbd_receiver.c
@@
-1224,7
+1224,7
@@
static int receive_Barrier(struct drbd_conf *mdev, struct p_header *h)
epoch = kmalloc(sizeof(struct drbd_epoch), GFP_NOIO);
if (!epoch) {
dev_warn(DEV, "Allocation of an epoch failed, slowing down\n");
- issue_flush = !test_and_set_bit(DE_BARRIER_IN_NEXT_EPOCH_ISSUED, &epoch->flags);
+ issue_flush = !test_and_set_bit(DE_BARRIER_IN_NEXT_EPOCH_ISSUED, &
mdev->current_
epoch->flags);
drbd_wait_ee_list_empty(mdev, &mdev->active_ee);
if (issue_flush) {
rv = drbd_flush_after_epoch(mdev, mdev->current_epoch);