mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: Raja R Harinath <harinath@cs.umn.edu>
Cc: "Adam J. Richter" <adam@yggdrasil.com>,
	alsa-devel@alsa-project.org, perex@suse.cz,
	linux-kernel@vger.kernel.org
Subject: Re: Patch?: linux-2.5.59/sound/soundcore.c referenced non-existant errno variable
Date: Sat, 18 Jan 2003 21:27:23 +0100	[thread overview]
Message-ID: <20030118202723.GA27477@vana.vc.cvut.cz> (raw)
In-Reply-To: <d9bs2e8o0b.fsf@bose.cs.umn.edu>

On Sat, Jan 18, 2003 at 09:40:36AM -0600, Raja R Harinath wrote:
> > -	if (fd == -1)
> > +	filp = filp_open(fn, 0, 0);
> > +	if (IS_ERR(filp))
> >  	{
> >  		printk(KERN_INFO "Unable to load '%s'.\n", fn);
> >  		return 0;
> >  	}
> [snip]
> 
> I noticed that do_mod_firmware_load is wrapped by a
> set_fs(get_gs())/set_fs(fs) pair in mod_firmware_load, presumably
> because it performs an 'int 0x80' kernel syscall in there.  The
> cleanup to use the VFS directly should probably kill the wrapper too.

vfs_read expects userspace pointer, so we must do set_fs() at least
around vfs_read, and so I left it around whole function, to minimize
changes in code.

In original message I asked whether I should convert firmware loader to 
the "if (error) goto quit;" style to move error handling to one place, 
but only answer I got was 'Ask Rob' ;-)

And as I do not have sound hardware which needs firmware, I do not
want to make more changes than absolutely necessary to the code I cannot
verify. Of course if you'll find someone with hardware...
						Best regards,
							Petr Vandrovec
							vandrove@vc.cvut.cz

  reply	other threads:[~2003-01-18 20:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-17 23:57 Adam J. Richter
2003-01-18  2:49 ` Raja R Harinath
2003-01-18  3:13   ` Petr Vandrovec
2003-01-18 15:40     ` Raja R Harinath
2003-01-18 20:27       ` Petr Vandrovec [this message]
2003-01-18 20:40         ` Andrew Morton
2003-01-19  4:14 Adam J. Richter
2003-01-20 15:27 ` Horst von Brand
2003-01-21 16:48   ` Bill Davidsen
2003-01-21 17:01     ` Horst von Brand
2003-01-20 19:53 Adam J. Richter
2003-01-21  8:35 ` Horst von Brand
2003-01-20 20:01 Adam J. Richter

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=20030118202723.GA27477@vana.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=adam@yggdrasil.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=harinath@cs.umn.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    /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

all inboxes | Powered by JetHome®