nbd: fix uaf in nbd_open
[platform/kernel/linux-rpi.git] / drivers / zorro / zorro-driver.c
index 96f0688..025edfc 100644 (file)
@@ -130,9 +130,9 @@ static int zorro_bus_match(struct device *dev, struct device_driver *drv)
        return !!zorro_match_device(ids, z);
 }
 
-static int zorro_uevent(struct device *dev, struct kobj_uevent_env *env)
+static int zorro_uevent(const struct device *dev, struct kobj_uevent_env *env)
 {
-       struct zorro_dev *z;
+       const struct zorro_dev *z;
 
        if (!dev)
                return -ENODEV;