diff options
Diffstat (limited to 'drivers/staging/vme/devices/vme_user.c')
-rw-r--r-- | drivers/staging/vme/devices/vme_user.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index da7f759..daec155 100644 --- a/drivers/staging/vme/devices/vme_user.c +++ b/drivers/staging/vme/devices/vme_user.c @@ -109,7 +109,7 @@ struct driver_stats { unsigned long ioctls; unsigned long irqs; unsigned long berrs; - unsigned long dmaErrors; + unsigned long dmaerrors; unsigned long timeouts; unsigned long external; }; @@ -160,7 +160,7 @@ static void reset_counters(void) statistics.ioctls = 0; statistics.irqs = 0; statistics.berrs = 0; - statistics.dmaErrors = 0; + statistics.dmaerrors = 0; statistics.timeouts = 0; } @@ -734,6 +734,7 @@ static int vme_user_probe(struct vme_dev *vdev) if (image[i].resource == NULL) { dev_warn(&vdev->dev, "Unable to allocate slave resource\n"); + err = -ENOMEM; goto err_slave; } image[i].size_buf = PCI_BUF_SIZE; @@ -760,6 +761,7 @@ static int vme_user_probe(struct vme_dev *vdev) if (image[i].resource == NULL) { dev_warn(&vdev->dev, "Unable to allocate master resource\n"); + err = -ENOMEM; goto err_master; } image[i].size_buf = PCI_BUF_SIZE; |