]> asedeno.scripts.mit.edu Git - linux.git/commit
habanalabs: patched cb equals user cb in device memset
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 22 Jan 2020 22:43:06 +0000 (00:43 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 11 Feb 2020 09:12:47 +0000 (11:12 +0200)
commitcf01514c5c6efa2d521d35e68dff2e0674d08e91
tree7b6f3013273ca018b85e369eb05010f81c3b7d19
parenta37e47192dfa98f79a0cd5ab991c224b5980c982
habanalabs: patched cb equals user cb in device memset

During device memory memset, the driver allocates and use a CB (command
buffer). To reuse existing code, it keeps a pointer to the CB in two
variables, user_cb and patched_cb. Therefore, there is no need to "put"
both the user_cb and patched_cb, as it will cause an underflow of the
refcnt of the CB.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c