[CRIU] Re: [PATCH] tty: Fix copying of termios character map

Cyrill Gorcunov gorcunov at openvz.org
Tue Oct 2 12:05:41 EDT 2012


On Tue, Oct 02, 2012 at 08:04:39PM +0400, Cyrill Gorcunov wrote:
> The system termios structure and our PB
> equivalent defined quite different, while
> first defined as plain array we use dynamically
> allocated memory. Thus the use of min() macro
> is incorrect here and always produce the size of
> pointer.
> 
> Fix it using the size of array from the system
> provided structure. The BUILD_BUG_ON will prevent
> from accidental changes.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>

Wait a second please, I've done typo there. Update is coming.


More information about the CRIU mailing list