Linux-Next discussions
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Mark Brown <broonie@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Runyu Xiao <runyu.xiao@seu.edu.cn>,
	Vu Nguyen Anh Khoa <khoavna.tin.2225@gmail.com>
Subject: Re: linux-next: manual merge of the char-misc tree with the char-misc.current tree
Date: Mon, 27 Jul 2026 14:18:40 +0200	[thread overview]
Message-ID: <2026072730-vitamins-humorless-95e0@gregkh> (raw)
In-Reply-To: <al40xMdxeEHvedyh@sirena.org.uk>

On Mon, Jul 20, 2026 at 03:46:28PM +0100, Mark Brown wrote:
> Hi all,
> 
> Today's linux-next merge of the char-misc tree got a conflict in:
> 
>   drivers/misc/nsm.c
> 
> between commit:
> 
>   ce1fed11d18e1 ("misc: nsm: only unlock nsm_dev on post-lock error paths")
> 
> from the char-misc.current tree and commit:
> 
>   937cd823bb2c9 ("misc: nsm: do not unlock mutex before locking it")
> 
> from the char-misc tree.
> 
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
> 
> diff --combined drivers/misc/nsm.c
> index 3960506eb7ab3,bb254ee65b840..0000000000000
> --- a/drivers/misc/nsm.c
> +++ b/drivers/misc/nsm.c
> @@@ -243,7 -243,7 +243,7 @@@ static int nsm_sendrecv_msg_locked(stru
>   		goto cleanup;
>   	}
>   
> - 	msg->resp.len = len;
> + 	msg->resp.len = min_t(unsigned int, len, sizeof(msg->resp.data));
>   
>   	rc = 0;
>   
> @@@ -365,9 -365,8 +365,8 @@@ static long nsm_dev_ioctl(struct file *
>   		return -EINVAL;
>   
>   	/* Copy user argument struct to kernel argument struct */
> - 	r = -EFAULT;
>   	if (copy_from_user(&raw, argp, _IOC_SIZE(cmd)))
> - 		return r;
> + 		return -EFAULT;
>   
>   	mutex_lock(&nsm->lock);
>   
> @@@ -413,7 -412,6 +412,7 @@@ static int nsm_device_init_vq(struct vi
>   }
>   
>   static const struct file_operations nsm_dev_fops = {
>  +	.owner = THIS_MODULE,
>   	.unlocked_ioctl = nsm_dev_ioctl,
>   	.compat_ioctl = compat_ptr_ioctl,
>   };

Thanks, looks good, this is now done in my tree too.

greg k-h

  reply	other threads:[~2026-07-27 12:18 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-20 14:46 linux-next: manual merge of the char-misc tree with the char-misc.current tree Mark Brown
2026-07-27 12:18 ` Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-07-20 14:44 Mark Brown
2026-07-21  8:28 ` Alice Ryhl
2026-07-27 12:18   ` Greg KH
2026-05-25 15:07 Mark Brown
2025-11-14  3:32 Stephen Rothwell
2025-11-14 19:10 ` Dinh Nguyen
2025-10-24  1:49 Stephen Rothwell
2025-10-24  5:24 ` Greg KH
2021-12-06  3:49 Stephen Rothwell
2021-12-06 13:43 ` Andy Shevchenko
2021-12-06 16:17   ` Ralph Siemsen
2021-12-06 16:44     ` Andy Shevchenko
2021-12-13  9:18       ` Greg KH
2022-01-07 23:18         ` Kees Cook
2019-10-18  3:26 Stephen Rothwell
2019-10-18 10:06 ` Greg KH
2019-04-03  3:56 Stephen Rothwell
2019-04-03  5:06 ` Srinivas Kandagatla
2019-04-03  6:39   ` Bo YU
2018-12-04  4:35 Stephen Rothwell
2018-12-04  7:42 ` Greg KH
2018-12-04  8:46   ` Dexuan Cui
2018-12-10  9:47     ` Greg KH
2018-12-10 18:51       ` Dexuan Cui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026072730-vitamins-humorless-95e0@gregkh \
    --to=greg@kroah.com \
    --cc=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=khoavna.tin.2225@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=runyu.xiao@seu.edu.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox