mirror of
https://github.com/torvalds/linux.git
synced 2024-10-26 23:12:36 +00:00
85cfb3a835
So far, attribute memory was allocated by pre-calculating the maximum possible amount of attributes. Not only does this waste memory, it is also risky because the calculation might be wrong. It also requires a lot of defines to specify the maximum number of attributes per class. Allocate attribute memory using krealloc() instead. That means we have to use kfree(), since devm_krealloc() does not exist, but that is still less costly and less risky than trying to predict the number of attributes at the beginning. Signed-off-by: Guenter Roeck <linux@roeck-us.net> |
||
---|---|---|
.. | ||
adm1275.c | ||
Kconfig | ||
lm25066.c | ||
ltc2978.c | ||
Makefile | ||
max8688.c | ||
max16064.c | ||
max34440.c | ||
pmbus_core.c | ||
pmbus.c | ||
pmbus.h | ||
ucd9000.c | ||
ucd9200.c | ||
zl6100.c |