X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fres_counter.c;h=efbfc0fc232f33c49b5b918704b4e13ae5d0f2cc;hb=62429f434091586d54b37b8dd46076e7c08b27b9;hp=16cbec2d5d60514e67c14907e6d11f91cfecafd1;hpb=d31d29540915f21d3f2bcfdd6d135fde328038a0;p=karo-tx-linux.git diff --git a/kernel/res_counter.c b/kernel/res_counter.c index 16cbec2d5d60..efbfc0fc232f 100644 --- a/kernel/res_counter.c +++ b/kernel/res_counter.c @@ -113,6 +113,7 @@ ssize_t res_counter_write(struct res_counter *counter, int member, ret = -EINVAL; + strstrip(buf); if (write_strategy) { if (write_strategy(buf, &tmp)) { goto out_free;