We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c95bf2 commit 63e8b94Copy full SHA for 63e8b94
drivers/s390/cio/css.c
@@ -233,17 +233,19 @@ struct subchannel *css_alloc_subchannel(struct subchannel_id schid,
233
*/
234
ret = dma_set_coherent_mask(&sch->dev, DMA_BIT_MASK(31));
235
if (ret)
236
- goto err;
+ goto err_lock;
237
/*
238
* But we don't have such restrictions imposed on the stuff that
239
* is handled by the streaming API.
240
241
ret = dma_set_mask(&sch->dev, DMA_BIT_MASK(64));
242
243
244
245
return sch;
246
247
+err_lock:
248
+ kfree(sch->lock);
249
err:
250
kfree(sch);
251
return ERR_PTR(ret);
0 commit comments