aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/intel_th/pti.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwtracing/intel_th/pti.c')
-rw-r--r--drivers/hwtracing/intel_th/pti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwtracing/intel_th/pti.c b/drivers/hwtracing/intel_th/pti.c
index 1e3bbc89825c..57cbfdcc7ef0 100644
--- a/drivers/hwtracing/intel_th/pti.c
+++ b/drivers/hwtracing/intel_th/pti.c
@@ -207,8 +207,8 @@ static int intel_th_pti_probe(struct intel_th_device *thdev)
207 return -ENODEV; 207 return -ENODEV;
208 208
209 base = devm_ioremap(dev, res->start, resource_size(res)); 209 base = devm_ioremap(dev, res->start, resource_size(res));
210 if (IS_ERR(base)) 210 if (!base)
211 return PTR_ERR(base); 211 return -ENOMEM;
212 212
213 pti = devm_kzalloc(dev, sizeof(*pti), GFP_KERNEL); 213 pti = devm_kzalloc(dev, sizeof(*pti), GFP_KERNEL);
214 if (!pti) 214 if (!pti)