diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
| commit | 185a257f2f73bcd89050ad02da5bedbc28fc43fa (patch) | |
| tree | 5e32586114534ed3f2165614cba3d578f5d87307 /arch/um/sys-i386/ldt.c | |
| parent | 3f1a9aaeffd8d1cbc5ab9776c45cbd66af1c9699 (diff) | |
| parent | a77c64c1a641950626181b4857abb701d8f38ccc (diff) | |
Merge branch 'master' into gfs2
Diffstat (limited to 'arch/um/sys-i386/ldt.c')
| -rw-r--r-- | arch/um/sys-i386/ldt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/sys-i386/ldt.c b/arch/um/sys-i386/ldt.c index fe0877b3509c..69971b78beaf 100644 --- a/arch/um/sys-i386/ldt.c +++ b/arch/um/sys-i386/ldt.c | |||
| @@ -424,9 +424,8 @@ void ldt_get_host_info(void) | |||
| 424 | size++; | 424 | size++; |
| 425 | } | 425 | } |
| 426 | 426 | ||
| 427 | if(size < sizeof(dummy_list)/sizeof(dummy_list[0])) { | 427 | if(size < ARRAY_SIZE(dummy_list)) |
| 428 | host_ldt_entries = dummy_list; | 428 | host_ldt_entries = dummy_list; |
| 429 | } | ||
| 430 | else { | 429 | else { |
| 431 | size = (size + 1) * sizeof(dummy_list[0]); | 430 | size = (size + 1) * sizeof(dummy_list[0]); |
| 432 | host_ldt_entries = (short *)kmalloc(size, GFP_KERNEL); | 431 | host_ldt_entries = (short *)kmalloc(size, GFP_KERNEL); |
