Initialize bus_space_handle_t with zero (for PC-98).

This commit is contained in:
nyan 2000-11-13 11:48:38 +00:00
parent c351ff47d0
commit 1b8f67f8cb
4 changed files with 8 additions and 8 deletions

View File

@ -437,8 +437,8 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
return 0;
#ifdef PC98
/* Allocate bushandle. */
rv->r_bushandle =
malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE, M_NOWAIT);
rv->r_bushandle = malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE,
M_NOWAIT | M_ZERO);
if (rv->r_bushandle == 0) {
rman_release_resource(rv);
return 0;

View File

@ -437,8 +437,8 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
return 0;
#ifdef PC98
/* Allocate bushandle. */
rv->r_bushandle =
malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE, M_NOWAIT);
rv->r_bushandle = malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE,
M_NOWAIT | M_ZERO);
if (rv->r_bushandle == 0) {
rman_release_resource(rv);
return 0;

View File

@ -437,8 +437,8 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
return 0;
#ifdef PC98
/* Allocate bushandle. */
rv->r_bushandle =
malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE, M_NOWAIT);
rv->r_bushandle = malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE,
M_NOWAIT | M_ZERO);
if (rv->r_bushandle == 0) {
rman_release_resource(rv);
return 0;

View File

@ -437,8 +437,8 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
return 0;
#ifdef PC98
/* Allocate bushandle. */
rv->r_bushandle =
malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE, M_NOWAIT);
rv->r_bushandle = malloc(sizeof *rv->r_bushandle, M_BUSSPACEHANDLE,
M_NOWAIT | M_ZERO);
if (rv->r_bushandle == 0) {
rman_release_resource(rv);
return 0;