Date: Mon, 23 Nov 2015 16:41:49 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 204768] usr/src/sys/arm64/arm64/gic_v3.c:157: possible bad size ? Message-ID: <bug-204768-7@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204768 Bug ID: 204768 Summary: usr/src/sys/arm64/arm64/gic_v3.c:157: possible bad size ? Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: dcb314@hotmail.com [usr/src/sys/arm64/arm64/gic_v3.c:157]: (warning) Size of pointer 'gic_res' used instead of size of its data. Source code is sc->gic_res = malloc( sizeof(sc->gic_res) * (sc->gic_redists.nregions + 1), M_GIC_V3, M_WAITOK); Maybe better code sc->gic_res = malloc( sizeof(*(sc->gic_res)) * (sc->gic_redists.nregions + 1), M_GIC_V3, M_WAITOK); -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204768-7>