From: Sean Neakums <sneakums@zork.net>
To: linux-kernel@vger.kernel.org
Subject: Re: Error in get_swap_page? (2.5.44)
Date: Sun, 20 Oct 2002 20:36:46 +0100 [thread overview]
Message-ID: <6ud6q4x5pt.fsf@zork.zork.net> (raw)
In-Reply-To: <20021020213217.A17457@jaquet.dk> (Rasmus Andersen's message of "Sun, 20 Oct 2002 21:32:17 +0200")
commence Rasmus Andersen quotation:
> Unless I am mistaken, we return stuff (entry) from the local
> stack in swapfile.c::get_swap_page. Am I mistaken?
Wouldn't this only be a problem if a *pointer* to it was being
returned?
> Code in question:
>
> swp_entry_t get_swap_page(void)
> {
> struct swap_info_struct * p;
> unsigned long offset;
> swp_entry_t entry;
> int type, wrapped = 0;
>
> entry.val = 0; /* Out of memory */
> [...]
>
> out:
> swap_list_unlock();
> return entry;
> }
--
/ |
[|] Sean Neakums | Questions are a burden to others;
[|] <sneakums@zork.net> | answers a prison for oneself.
\ |
next prev parent reply other threads:[~2002-10-20 19:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-20 19:32 Rasmus Andersen
2002-10-20 19:36 ` Sean Neakums [this message]
2002-10-20 19:41 ` Rasmus Andersen
2002-10-20 19:36 ` bert hubert
2002-10-20 19:39 ` Rasmus Andersen
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=6ud6q4x5pt.fsf@zork.zork.net \
--to=sneakums@zork.net \
--cc=linux-kernel@vger.kernel.org \
/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®