Initialize bus_space_handle_t with zero (for PC-98).
This commit is contained in:
parent
c351ff47d0
commit
1b8f67f8cb
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user