lkml.org 
[lkml]   [2014]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] FMC: misc_register should not be called while atomic
On Wed, Apr 09, 2014 at 12:13:35PM +0800, Jet Chen wrote:
> Signed-off-by: Jet Chen <jet.chen@intel.com>
> ---
> drivers/fmc/fmc-chardev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/fmc/fmc-chardev.c b/drivers/fmc/fmc-chardev.c
> index b071039..08c4549 100644
> --- a/drivers/fmc/fmc-chardev.c
> +++ b/drivers/fmc/fmc-chardev.c
> @@ -141,8 +141,8 @@ static int fc_probe(struct fmc_device *fmc)
> fc->misc.fops = &fc_fops;
> fc->misc.name = kstrdup(dev_name(&fmc->dev), GFP_KERNEL);
>
> - spin_lock(&fc_lock);
> ret = misc_register(&fc->misc);
> + spin_lock(&fc_lock);
> if (ret < 0) {
> kfree(fc->misc.name);
> kfree(fc);
> --
> 1.9.1

This patch doesn't apply at all, can you please redo it against 3.15-rc1
and resend it so that I can apply it?

thanks,

greg k-h


\
 
 \ /
  Last update: 2014-04-16 23:41    [W:0.056 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site