mei: fix reading large reposnes
authorTomas Winkler <tomas.winkler@intel.com>
Fri, 19 Apr 2013 19:01:35 +0000 (22:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Apr 2013 20:38:38 +0000 (13:38 -0700)
commitfcb136e1ac5774909e0d85189f721b8dfa800e0f
treeac89a706d67783063d4f752c3acddc04c5ab10e8
parent6e0f180fd8b47fa0884177a142e41a86117edc23
mei: fix reading large reposnes

While writting to device is limitted to max_msg_length advertized
in client properites the read can be much longer delivered consequiting chunks.

We use krealloc to enlarge the buffer when needed.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c
drivers/misc/mei/client.c
drivers/misc/mei/client.h
drivers/misc/mei/interrupt.c
drivers/misc/mei/main.c