summaryrefslogtreecommitdiffstats
path: root/hwaccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'hwaccess.c')
-rw-r--r--hwaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwaccess.c b/hwaccess.c
index 48ccb3485..3a9ca5780 100644
--- a/hwaccess.c
+++ b/hwaccess.c
@@ -247,7 +247,7 @@ static int undo_mmio_write(void *p)
#define register_undo_mmio_write(a, c) \
{ \
struct undo_mmio_write_data *undo_mmio_write_data; \
- undo_mmio_write_data = malloc(sizeof(struct undo_mmio_write_data)); \
+ undo_mmio_write_data = malloc(sizeof(*undo_mmio_write_data)); \
if (!undo_mmio_write_data) { \
msg_gerr("Out of memory!\n"); \
exit(1); \