Skip to content

Commit 9759d22

Browse files
Russell KingRussell King
authored andcommitted
Merge branch 'master' into devel
Conflicts: arch/arm/include/asm/elf.h arch/arm/kernel/module.c
2 parents ed40d0c + f0bba9f commit 9759d22

5 files changed

Lines changed: 16 additions & 3 deletions

File tree

‎arch/arm/include/asm/elf.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ typedef struct user_fp elf_fpregset_t;
5050
#define R_ARM_ABS32 2
5151
#define R_ARM_CALL 28
5252
#define R_ARM_JUMP24 29
53+
#define R_ARM_V4BX 40
5354
#define R_ARM_PREL31 42
5455

5556
/*

‎arch/arm/kernel/module.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
155155
*(u32 *)loc |= offset & 0x00ffffff;
156156
break;
157157

158+
case R_ARM_V4BX:
159+
/* Preserve Rm and the condition code. Alter
160+
* other bits to re-code instruction as
161+
* MOV PC,Rm.
162+
*/
163+
*(u32 *)loc &= 0xf000000f;
164+
*(u32 *)loc |= 0x01a0f000;
165+
break;
166+
158167
case R_ARM_PREL31:
159168
offset = *(u32 *)loc + sym->st_value - loc;
160169
*(u32 *)loc = offset & 0x7fffffff;

‎arch/arm/mach-iop13xx/pci.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,8 +1026,10 @@ int iop13xx_pci_setup(int nr, struct pci_sys_data *sys)
10261026
which_atu = 0;
10271027
}
10281028

1029-
if (!which_atu)
1029+
if (!which_atu) {
1030+
kfree(res);
10301031
return 0;
1032+
}
10311033

10321034
switch(which_atu) {
10331035
case IOP13XX_INIT_ATU_ATUX:
@@ -1074,6 +1076,7 @@ int iop13xx_pci_setup(int nr, struct pci_sys_data *sys)
10741076
sys->map_irq = iop13xx_pcie_map_irq;
10751077
break;
10761078
default:
1079+
kfree(res);
10771080
return 0;
10781081
}
10791082

‎arch/arm/mm/mmu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ static void __init sanity_check_meminfo(void)
723723
* the vmalloc area.
724724
*/
725725
if (__va(bank->start) >= VMALLOC_MIN ||
726-
__va(bank->start) < PAGE_OFFSET) {
726+
__va(bank->start) < (void *)PAGE_OFFSET) {
727727
printk(KERN_NOTICE "Ignoring RAM at %.8lx-%.8lx "
728728
"(vmalloc region overlap).\n",
729729
bank->start, bank->start + bank->size - 1);

‎drivers/scsi/arm/cumana_2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
318318
{
319319
int ret = length;
320320

321-
if (length >= 11 && strcmp(buffer, "CUMANASCSI2") == 0) {
321+
if (length >= 11 && strncmp(buffer, "CUMANASCSI2", 11) == 0) {
322322
buffer += 11;
323323
length -= 11;
324324

0 commit comments

Comments
 (0)