]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs/gaudi: fix comment to reflect current code
authorOded Gabbay <ogabbay@kernel.org>
Sun, 5 Jun 2022 09:56:36 +0000 (12:56 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:22 +0000 (09:09 +0300)
commit9afbcea59145dc78983cfdb17b954e71d84c4487
tree532baf3fa3726f091e9fc40dde2f0b1744b6533f
parent686a27678a7f7f4cdbfa09b57ef6eafc7afe6c8e
habanalabs/gaudi: fix comment to reflect current code

Due to code changes in the past few years, the original comment of
how parser->user_cb_size is checked was not correct anymore.

Fix it to reflect current code and add more explanation as the code
is more complex now.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c