aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fb
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2018-01-13 22:30:30 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2018-01-13 22:30:30 +0000
commit26c1d774b55c4db79bca772941883244986e6f44 (patch)
tree0d4a99e9eba470c0808a66d7d3f857c9f36446fa /sys/dev/fb
parenta019e26c0f76f5fd5c401cd87554ef2d5efc36ca (diff)
Notes
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/splash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fb/splash.c b/sys/dev/fb/splash.c
index c3e1946ad0e8..1bcec1c5a504 100644
--- a/sys/dev/fb/splash.c
+++ b/sys/dev/fb/splash.c
@@ -136,8 +136,8 @@ splash_register(splash_decoder_t *decoder)
break;
}
if ((i >= decoders) && (decoders % DECODER_ARRAY_DELTA) == 0) {
- p = malloc(sizeof(*p)*(decoders + DECODER_ARRAY_DELTA),
- M_DEVBUF, M_NOWAIT);
+ p = mallocarray(decoders + DECODER_ARRAY_DELTA,
+ sizeof(*p), M_DEVBUF, M_NOWAIT);
if (p == NULL)
return ENOMEM;
if (decoder_set != NULL) {