aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_intr.c
diff options
context:
space:
mode:
authorSvatopluk Kraus <skra@FreeBSD.org>2016-05-06 08:54:00 +0000
committerSvatopluk Kraus <skra@FreeBSD.org>2016-05-06 08:54:00 +0000
commita100280e59e3fb5bb57fb5d2502234ee496e58f7 (patch)
tree30e0653b4cf40052faccc32763ebc6ac0df2e685 /sys/kern/subr_intr.c
parent9c61377766a02b0776b8f79a4a20a74aa46b5ae3 (diff)
downloadsrc-a100280e59e3fb5bb57fb5d2502234ee496e58f7.tar.gz
src-a100280e59e3fb5bb57fb5d2502234ee496e58f7.zip
Set correct size to the size member of struct intr_map_data when
initialized. As the size member is not used at the present, it did not break anything.
Notes
Notes: svn path=/head/; revision=299164
Diffstat (limited to 'sys/kern/subr_intr.c')
-rw-r--r--sys/kern/subr_intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c
index 366ccf9b2e88..98e8e387106b 100644
--- a/sys/kern/subr_intr.c
+++ b/sys/kern/subr_intr.c
@@ -511,7 +511,7 @@ intr_ddata_alloc(u_int extsize)
mtx_unlock(&isrc_table_lock);
ddata->idd_data = (struct intr_map_data *)((uintptr_t)ddata + size);
- ddata->idd_data->size = size;
+ ddata->idd_data->size = extsize;
return (ddata);
}