fs: dlm: add get buffer error handling
authorAlexander Aring <aahringo@redhat.com>
Tue, 3 Nov 2020 01:04:18 +0000 (20:04 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 10 Nov 2020 18:14:20 +0000 (12:14 -0600)
commit692f51c8cbe752cb16ea2a75016ea0a497d00b1c
treea1a15ae76064d1f8ca5d0f8fff0c06e76bacd6e2
parent9f8f9c774ad10aa1c15952c36f580d7e3711a100
fs: dlm: add get buffer error handling

This patch adds an error handling to the get buffer functionality if the
user is requesting a buffer length which is more than possible of
the internal buffer allocator. This should never happen because specific
handling decided by compile time, but will warn if somebody forget about
to handle this limitation right.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c