OSDN Git Service

diag: Reallocate dci buffer with proper required capacity
authorHardik Arya <harya@codeaurora.org>
Fri, 10 May 2019 10:11:24 +0000 (15:41 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 6 Nov 2019 06:47:53 +0000 (22:47 -0800)
commitad33cbf95e9a5eb256f3d7bc8c9eff3d7d675b34
tree069804b076bf6ad424e56fd9b0f082c2d9a5c424
parentd5f8b8426c36fe789978be7338e2345d6bd3deed
diag: Reallocate dci buffer with proper required capacity

DCI command buffer reallocation is not done properly with
required capacity. The patch reallocates the same buffer and
updated capacity properly with header and response length.

Change-Id: I7b5fd132b9241d0f1493bcb602a6b361e4ad9a04
Signed-off-by: Hardik Arya <harya@codeaurora.org>
drivers/char/diag/diag_dci.c