diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index aed2c45f7968cb4d7b6bbbee439664d885342137..ed3b7dab678dbd16acc5cef239415fcaaa360816 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -855,7 +855,7 @@ int hpet_alloc(struct hpet_data *hdp) return 0; } - hpetp = kzalloc(struct_size(hpetp, hp_dev, hdp->hd_nirqs - 1), + hpetp = kzalloc(struct_size(hpetp, hp_dev, hdp->hd_nirqs), GFP_KERNEL); if (!hpetp)