parent
50fe2159d5
commit
ac323c5e4d
|
@ -653,11 +653,12 @@ static int isapnpbus_probe ( struct root_device *rootdev ) {
|
||||||
|
|
||||||
/* Allocate struct isapnp_device */
|
/* Allocate struct isapnp_device */
|
||||||
if ( ! isapnp )
|
if ( ! isapnp )
|
||||||
isapnp = zalloc ( sizeof ( *isapnp ) );
|
isapnp = malloc ( sizeof ( *isapnp ) );
|
||||||
if ( ! isapnp ) {
|
if ( ! isapnp ) {
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
memset ( isapnp, 0, sizeof ( *isapnp ) );
|
||||||
isapnp->csn = csn;
|
isapnp->csn = csn;
|
||||||
isapnp->logdev = logdev;
|
isapnp->logdev = logdev;
|
||||||
|
|
||||||
|
|
Reference in New Issue