RE: [PATCH 3/3] EDAC, skx_edac: Add address translation for non-volatile DIMMs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tony,

> +	adxl_values = kcalloc(adxl_component_count, sizeof(*adxl_values),
> GFP_KERNEL);
> +	if (!adxl_values) {
> +		adxl_component_count = 0;
> +		edac_dbg(0, "No memory for adxl_decode()\n");
> +	}

Add kfree(adxl_values) or symmetrical code as below in skx_exit() ?

static void skx_dsm_put(void)
{
       kfree(adxl_values);
}

in skx_exit():
if (nvdimm_count)
           skx_dsm_put();

 
Thanks!
-Qiuxu





[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux