]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[DLM] fix send_args() lvb copying
authorDavid Teigland <teigland@redhat.com>
Wed, 13 Dec 2006 16:38:45 +0000 (10:38 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 5 Feb 2007 18:35:56 +0000 (13:35 -0500)
commitda49f36f4f64feb281d7663be99e779b2aecc607
tree53e2a66d70eac2d2d3ab4ff9ced6a2d674c0c815
parent9e971b715dcc3cd5f4383f2815aaa7e5853d1f7b
[DLM] fix send_args() lvb copying

The send_args() function is used to copy parameters into a message for a
number different message types.  Only some of those types are set up
beforehand (in create_message) to include space for sending lvb data.
send_args was wrongly copying the lvb for all message types as long as the
lock had an lvb.  This means that the lvb data was being written past the
end of the message into unknown space.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/lock.c