]> git.baikalelectronics.ru Git - kernel.git/commit
cxl/mbox: Make handle_mailbox_cmd_from_user() use a mbox param
authorAlison Schofield <alison.schofield@intel.com>
Thu, 31 Mar 2022 01:27:16 +0000 (18:27 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Apr 2022 23:07:01 +0000 (16:07 -0700)
commitcb2405a6139d99a4011087c61051e171ffe48755
treeef038a647ff767661d2b75e1ca9a46a0e15c32c2
parent805082d9a4ec08ec6a5a7267824f5469f3f4d615
cxl/mbox: Make handle_mailbox_cmd_from_user() use a mbox param

Previously, handle_mailbox_cmd_from_user(), constructed the mailbox
command and dispatched it to the hardware. The construction work
has moved to the validation path.

handle_mailbox_cmd_from_user() now expects a fully validated
mbox param. Make it's caller, cxl_send_cmd(), deliver it. Update
the comments and dereferencing of the new mbox parameter.

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/77050ba512d6c30eccf7505467509e460dd325a0.1648687552.git.alison.schofield@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c