]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/thermal/hisi_thermal.c
thermal: int3403_thermal: Fix NULL pointer deref on module load / probe
[mirror_ubuntu-bionic-kernel.git] / drivers / thermal / hisi_thermal.c
index 2d855a96cdd9886c5f3abbcfb4e1d8a5c1ea8666..761d0559c268b6068770a44ac91e490637a038fc 100644 (file)
@@ -527,7 +527,7 @@ static void hisi_thermal_toggle_sensor(struct hisi_thermal_sensor *sensor,
 static int hisi_thermal_probe(struct platform_device *pdev)
 {
        struct hisi_thermal_data *data;
-       int const (*platform_probe)(struct hisi_thermal_data *);
+       int (*platform_probe)(struct hisi_thermal_data *);
        struct device *dev = &pdev->dev;
        int ret;