Tag: 983e2444100667b4b35c9d56c9a1fec1e817143c

powerpc/mpic_msgr: Use kcalloc and correct the argument to sizeof

Author: Himangi Saraogi <himangi774@gmail.com> mpic_msgrs has type struct mpic_msgr **, not struct mpic_msgr *, so the elements of the array should have pointer type, not structure type. The advantage of kcalloc is, that will prevent integer overflows which could result from the multiplication of number of elements and size and it is also a bit …

Continue reading