Repository navigation
Commit fceda1b
memsw: handle swapaccount kernel parameter correctly
__setup based kernel command line parameters handlers which are handled in
obsolete_checksetup are provided with the parameter value including =
(more precisely everything right after the parameter name).
This means that the current implementation of swapaccount[=1|0] doesn't
work at all because if there is a value for the parameter then we are
testing for "0" resp. "1" but we are getting "=0" resp. "=1" and if
there is no parameter value we are getting an empty string rather than
NULL.
The original noswapccount parameter, which doesn't care about the value,
works correctly.
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent afe8a88 commit fceda1b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5024 | 5024 | | |
5025 | 5025 | | |
5026 | 5026 | | |
5027 | | - | |
| 5027 | + | |
5028 | 5028 | | |
5029 | | - | |
| 5029 | + | |
5030 | 5030 | | |
5031 | 5031 | | |
5032 | 5032 | | |
5033 | 5033 | | |
5034 | 5034 | | |
5035 | 5035 | | |
5036 | 5036 | | |
5037 | | - | |
| 5037 | + | |
5038 | 5038 | | |
5039 | 5039 | | |
5040 | 5040 | | |
| |||
0 commit comments