]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/libsrp.c
KVM: x86: Polish exception injection via KVM_SET_GUEST_DEBUG
[karo-tx-linux.git] / drivers / scsi / libsrp.c
index 2742ae8a3d091a13b989fb4f5a7de57e4f7d0490..9ad38e81e343ee1b9d419b175f266131dbceb0cf 100644 (file)
@@ -124,6 +124,7 @@ static void srp_ring_free(struct device *dev, struct srp_buf **ring, size_t max,
                dma_free_coherent(dev, size, ring[i]->buf, ring[i]->dma);
                kfree(ring[i]);
        }
+       kfree(ring);
 }
 
 int srp_target_alloc(struct srp_target *target, struct device *dev,