Commit e4cc7b04 authored by Federico Vaga's avatar Federico Vaga

Merge remote-tracking branch 'origin/bugfix/device-ptr' into develop

parents 5e488d67 fa4cfedf
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/fpga/fpga-mgr.h> #include <linux/fpga/fpga-mgr.h>
#include <vmebus.h> #include "vmebus.h"
#include "svec.h" #include "svec.h"
#include "svec-compat.h" #include "svec-compat.h"
...@@ -562,6 +562,9 @@ static int svec_probe(struct device *dev, unsigned int ndev) ...@@ -562,6 +562,9 @@ static int svec_probe(struct device *dev, unsigned int ndev)
struct svec_dev *svec; struct svec_dev *svec;
int err; int err;
if (WARN(dev == NULL, "Invalid VME Device\n"))
return -1;
svec = kzalloc(sizeof(struct svec_dev), GFP_KERNEL); svec = kzalloc(sizeof(struct svec_dev), GFP_KERNEL);
if (!svec) { if (!svec) {
err = -ENOMEM; err = -ENOMEM;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment