Initialize bus_space_handle_t with zero (for PC-98).

This commit is contained in:
Yoshihiro Takahashi 2000-11-13 11:48:38 +00:00
parent a7bf21bf6c
commit 8965720482
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;