commit | 00552d1b2ece76d01ad916281a675f133aa8dabe | [log] [tgz] |
---|---|---|
author | Jon Medhurst <tixy@linaro.org> | Thu Jul 25 16:01:54 2013 +0530 |
committer | Amit Pundir <amit.pundir@linaro.org> | Thu Jul 25 16:01:54 2013 +0530 |
tree | ef03ef7dd54c9864d7a1edcdbbab2121f393262e | |
parent | b2c2724116074eef5c444394658d91e073fa42ac [diff] |
init: Allow for arbitrary long /proc/cpuinfo output get_hardware_name() uses a fixed size buffer to slurp the contents of /proc/cpuinfo into and with newer multicore systems this is not big enough, leading to the inability to pick up the hardware name. Fix this by using a dynamically allocated, exponentially growing buffer. Signed-off-by: Amit Pundir <amit.pundir@linaro.org>