Merge tag 'char-misc-5.6-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc

Pull char/misc fix from Greg KH:
"Here is a single patch, that fixes up a commit that came in the
previous char/misc merge.

It fixes a bug in the hpet driver that everyone keeps tripping over in
their automated testing. Good thing is, people are catching it. Bad
thing it wasn't caught by anyone testing before this. Oh well...

This has been in linux-next for a few days with no reported issues"

* tag 'char-misc-5.6-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
char: hpet: Fix out-of-bounds read bug

+1 -1
+1 -1
drivers/char/hpet.c
··· 855 855 return 0; 856 856 } 857 857 858 - hpetp = kzalloc(struct_size(hpetp, hp_dev, hdp->hd_nirqs - 1), 858 + hpetp = kzalloc(struct_size(hpetp, hp_dev, hdp->hd_nirqs), 859 859 GFP_KERNEL); 860 860 861 861 if (!hpetp)