Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (2 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/drivers/nvdimm/bus.c

    r29492 r31885  
    591591        if (rc < 0)
    592592                goto out_unlock;
     593        nvdimm_bus_unlock(&nvdimm_bus->dev);
     594
    593595        if (copy_to_user(p, buf, buf_len))
    594596                rc = -EFAULT;
     597
     598        vfree(buf);
     599        return rc;
     600
    595601 out_unlock:
    596602        nvdimm_bus_unlock(&nvdimm_bus->dev);
Note: See TracChangeset for help on using the changeset viewer.