diff options
Diffstat (limited to 'sys/dev/aic7xxx/aic7xxx_freebsd.c')
-rw-r--r-- | sys/dev/aic7xxx/aic7xxx_freebsd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx_freebsd.c b/sys/dev/aic7xxx/aic7xxx_freebsd.c index 4ca846c..31ae3a5 100644 --- a/sys/dev/aic7xxx/aic7xxx_freebsd.c +++ b/sys/dev/aic7xxx/aic7xxx_freebsd.c @@ -1795,11 +1795,10 @@ ahc_platform_set_tags(struct ahc_softc *ahc, int ahc_platform_alloc(struct ahc_softc *ahc, void *platform_arg) { - ahc->platform_data = - malloc(sizeof(struct ahc_platform_data), M_DEVBUF, M_NOWAIT); + ahc->platform_data = malloc(sizeof(struct ahc_platform_data), M_DEVBUF, + M_NOWAIT | M_ZERO); if (ahc->platform_data == NULL) return (ENOMEM); - memset(ahc->platform_data, 0, sizeof(struct ahc_platform_data)); return (0); } |