Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26707
b: refs/heads/master
c: 5e37661
h: refs/heads/master
i:
  26705: 374917c
  26703: 635d11b
v: v3
  • Loading branch information
Trent Piepho authored and Linus Torvalds committed May 15, 2006
1 parent 153bbba commit aa09ffb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0159677857c5ada0a0a2c03a4dd59312382b73d0
refs/heads/master: 5e376613899076396d0c97de67ad072587267370
1 change: 1 addition & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ extern int get_option(char **str, int *pint);
extern char *get_options(const char *str, int nints, int *ints);
extern unsigned long long memparse(char *ptr, char **retptr);

extern int core_kernel_text(unsigned long addr);
extern int __kernel_text_address(unsigned long addr);
extern int kernel_text_address(unsigned long addr);
extern int session_of_pgrp(int pgrp);
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/extable.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const struct exception_table_entry *search_exception_tables(unsigned long addr)
return e;
}

static int core_kernel_text(unsigned long addr)
int core_kernel_text(unsigned long addr)
{
if (addr >= (unsigned long)_stext &&
addr <= (unsigned long)_etext)
Expand Down
12 changes: 6 additions & 6 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,14 +705,14 @@ EXPORT_SYMBOL(__symbol_put);

void symbol_put_addr(void *addr)
{
unsigned long flags;
struct module *modaddr;

spin_lock_irqsave(&modlist_lock, flags);
if (!kernel_text_address((unsigned long)addr))
BUG();
if (core_kernel_text((unsigned long)addr))
return;

module_put(module_text_address((unsigned long)addr));
spin_unlock_irqrestore(&modlist_lock, flags);
if (!(modaddr = module_text_address((unsigned long)addr)))
BUG();
module_put(modaddr);
}
EXPORT_SYMBOL_GPL(symbol_put_addr);

Expand Down

0 comments on commit aa09ffb

Please sign in to comment.