We need to have access to the struct file that was used to issue the
ioctl later, so let's pass it down to kdbus_conn_kmsg_send().
Signed-off-by: Daniel Mack <daniel@zonque.org>
* kdbus_cmd_msg_send() - send a message
* @conn_src: Connection
* @cmd: Payload of SEND command
+ * @ioctl_file: struct file used to issue this ioctl
* @kmsg: Message to send
*
* Return: 0 on success, negative errno on failure
*/
int kdbus_cmd_msg_send(struct kdbus_conn *conn_src,
struct kdbus_cmd_send *cmd,
+ struct file *ioctl_file,
struct kdbus_kmsg *kmsg)
{
bool sync = cmd->flags & KDBUS_SEND_SYNC_REPLY;
/* command dispatcher */
int kdbus_cmd_msg_send(struct kdbus_conn *conn_src,
struct kdbus_cmd_send *cmd_send,
+ struct file *ioctl_file,
struct kdbus_kmsg *kmsg);
int kdbus_cmd_msg_recv(struct kdbus_conn *conn,
struct kdbus_cmd_recv *recv);
break;
}
- ret = kdbus_cmd_msg_send(conn, cmd_send, kmsg);
+ ret = kdbus_cmd_msg_send(conn, cmd_send, file, kmsg);
if (ret < 0) {
kdbus_kmsg_free(kmsg);
break;