linux-next: manual merge of the char-misc tree with the char-misc.current tree
Subsystems (3)
Mark Brown
maintainerHi 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.
drivers/misc/nsm.c +0 -0
@@@ -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 ;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); }static const struct file_operations nsm_dev_fops = { + .owner = THIS_MODULE, .unlocked_ioctl = nsm_dev_ioctl, .compat_ioctl = compat_ptr_ioctl, };
Quoted 48 lines · Mark Brown
Hi all,
Today's linux-next merge of the char-misc tree got a conflict in:
drivers/misc/nsm.cbetween commit:
ce1fed11d18e1("misc: nsm: only unlocknsm_devon 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.
drivers/misc/nsm.c +2
-3@@@ -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);
drivers/misc/nsm.c
Quoted 7 lines
drivers/misc/nsm.c +0
-0@@@ -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