[Bug 204768] usr/src/sys/arm64/arm64/gic_v3.c:157: possible bad size ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Nov 23 16:41:49 UTC 2015
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 at FreeBSD.org
Reporter: dcb314 at 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.
More information about the freebsd-arm
mailing list