|
@@ -117,7 +117,7 @@ int rio_request_inb_mbox(struct rio_mport *mport,
|
|
|
if (mport->ops->open_inb_mbox == NULL)
|
|
|
goto out;
|
|
|
|
|
|
- res = kmalloc(sizeof(struct resource), GFP_KERNEL);
|
|
|
+ res = kzalloc(sizeof(struct resource), GFP_KERNEL);
|
|
|
|
|
|
if (res) {
|
|
|
rio_init_mbox_res(res, mbox, mbox);
|
|
@@ -185,7 +185,7 @@ int rio_request_outb_mbox(struct rio_mport *mport,
|
|
|
if (mport->ops->open_outb_mbox == NULL)
|
|
|
goto out;
|
|
|
|
|
|
- res = kmalloc(sizeof(struct resource), GFP_KERNEL);
|
|
|
+ res = kzalloc(sizeof(struct resource), GFP_KERNEL);
|
|
|
|
|
|
if (res) {
|
|
|
rio_init_mbox_res(res, mbox, mbox);
|
|
@@ -285,7 +285,7 @@ int rio_request_inb_dbell(struct rio_mport *mport,
|
|
|
{
|
|
|
int rc = 0;
|
|
|
|
|
|
- struct resource *res = kmalloc(sizeof(struct resource), GFP_KERNEL);
|
|
|
+ struct resource *res = kzalloc(sizeof(struct resource), GFP_KERNEL);
|
|
|
|
|
|
if (res) {
|
|
|
rio_init_dbell_res(res, start, end);
|
|
@@ -360,7 +360,7 @@ int rio_release_inb_dbell(struct rio_mport *mport, u16 start, u16 end)
|
|
|
struct resource *rio_request_outb_dbell(struct rio_dev *rdev, u16 start,
|
|
|
u16 end)
|
|
|
{
|
|
|
- struct resource *res = kmalloc(sizeof(struct resource), GFP_KERNEL);
|
|
|
+ struct resource *res = kzalloc(sizeof(struct resource), GFP_KERNEL);
|
|
|
|
|
|
if (res) {
|
|
|
rio_init_dbell_res(res, start, end);
|