)]}'
{
  "commit": "03eac7bb882a75e6ee5705288f7ec36ad2e7d0d5",
  "tree": "893948c6d009ccbce351be43a81a1c9662ab8478",
  "parents": [
    "1ec562035ba64e724652cb12b8a770b3906e9bf5"
  ],
  "author": {
    "name": "Richard Röjfors",
    "email": "richard.rojfors@pelagicore.com",
    "time": "Tue Feb 02 13:44:12 2010 -0800"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Tue Feb 02 18:11:22 2010 -0800"
  },
  "message": "uartlite: fix crash when using as console\n\nMove the ulite_console_setup to the .devinit section since it might be\ncalled on probe, which is in devinit.  Fixes the crash below where the\nuartlite hw is probed after the .init section is freed from the kernel.\n\nuartlite: ttyUL0 at MMIO 0xc8000100 (irq \u003d 30) is a uartlite\nBUG: unable to handle kernel NULL pointer dereference at (null)\nIP: [\u003cc176720e\u003e] ulite_console_setup+0x6f/0xa8\n*pdpt \u003d 0000000036fb0001 *pde \u003d 0000000000000000\nOops: 0000 [#1] PREEMPT SMP\nlast sysfs file: /sys/devices/pci0000:00/0000:00:1f.1/host0/uevent\nModules linked in: puffin(+) serio_raw\n\nPid: 151, comm: modprobe Not tainted (2.6.31.5-1.0.b1-b1 #1) POULSBO\nEIP: 0060:[\u003cc176720e\u003e] EFLAGS: 00010246 CPU: 0\nEIP is at ulite_console_setup+0x6f/0xa8\nEAX: c16ec824 EBX: c16ec824 ECX: c176719f EDX: 00000000\nESI: 00000000 EDI: c17b42c4 EBP: f6fd1cf0 ESP: f6fd1cd8\n DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068\nProcess modprobe (pid: 151, ti\u003df6fd0000 task\u003df6fa1020 task.ti\u003df6fd0000)\nStack:\n c1031f51 00000000 00000000 00000246 c182237c f7742000 f6fd1d5c c11fd316\n\u003c0\u003e c16ec85c f77420d4 0000001e 00000000 00000000 c1633e78 4f494d4d 63783020\n\u003c0\u003e 30303038 00303031 f6fd1d3c c10e0786 f6fd1d48 00000000 f6fd1d48 00000000\nCall Trace:\n [\u003cc1031f51\u003e] ? register_console+0xf6/0x1fc\n [\u003cc11fd316\u003e] ? uart_add_one_port+0x237/0x2bb\n [\u003cc10e0786\u003e] ? sysfs_add_one+0x13/0xd3\n [\u003cc10e142f\u003e] ? sysfs_do_create_link+0xba/0xfc\n [\u003cc146f200\u003e] ? ulite_probe+0x198/0x1eb\n [\u003cc12064ee\u003e] ? platform_drv_probe+0xc/0xe\n [\u003cc120597b\u003e] ? driver_probe_device+0x79/0x105\n [\u003cc1205a8e\u003e] ? __device_attach+0x28/0x30\n [\u003cc120511f\u003e] ? bus_for_each_drv+0x3d/0x67\n [\u003cc1205af9\u003e] ? device_attach+0x44/0x58\n [\u003cc1205a66\u003e] ? __device_attach+0x0/0x30\n [\u003cc1204fb8\u003e] ? bus_probe_device+0x1f/0x34\n [\u003cc1203e68\u003e] ? device_add+0x385/0x4c0\n [\u003cc148491f\u003e] ? _write_unlock+0x8/0x1f\n [\u003cc1206aac\u003e] ? platform_device_add+0xd9/0x11c\n [\u003cc120c685\u003e] ? mfd_add_devices+0x165/0x1bc\n [\u003cf831b378\u003e] ? puffin_probe+0x2d0/0x390 [puffin]\n [\u003cc11a08ef\u003e] ? pci_match_device+0xa0/0xa7\n [\u003cc11a07bc\u003e] ? local_pci_probe+0xe/0x10\n [\u003cc11a11db\u003e] ? pci_device_probe+0x43/0x66\n [\u003cc120597b\u003e] ? driver_probe_device+0x79/0x105\n [\u003cc1205a4a\u003e] ? __driver_attach+0x43/0x5f\n [\u003cc120535d\u003e] ? bus_for_each_dev+0x3d/0x67\n [\u003cc1205852\u003e] ? driver_attach+0x14/0x16\n [\u003cc1205a07\u003e] ? __driver_attach+0x0/0x5f\n [\u003cc1204dea\u003e] ? bus_add_driver+0xf9/0x220\n [\u003cc1205c8f\u003e] ? driver_register+0x8b/0xeb\n [\u003cc11a1518\u003e] ? __pci_register_driver+0x43/0x9f\n [\u003cc10477ef\u003e] ? __blocking_notifier_call_chain+0x40/0x4c\n [\u003cf831f000\u003e] ? puffin_init+0x0/0x48 [puffin]\n [\u003cf831f017\u003e] ? puffin_init+0x17/0x48 [puffin]\n [\u003cc1001139\u003e] ? do_one_initcall+0x4c/0x131\n [\u003cc105607b\u003e] ? sys_init_module+0xa7/0x1b7\n [\u003cc1002a61\u003e] ? syscall_call+0x7/0xb\n Code: 6e 74 00 00 00 92 33 00 00 18 00 0e 01 73 79 6e 63 65 2d 72 65 67 69 73 74 72 79 0c 00 49 32\n00 00 14 00 09 01 61 6c 73 61 2d 69 \u003c6e\u003e 66 6f 00 00 00 42 37 00 00 10 00 07 01 6b 69 6c 6c 61 6c 6c\nEIP: [\u003cc176720e\u003e] ulite_console_setup+0x6f/0xa8 SS:ESP 0068:f6fd1cd8\nCR2: 0000000000000000\n\nSigned-off-by: Richard Röjfors \u003crichard.rojfors@pelagicore.com\u003e\nAcked-by: Peter Korsgaard \u003cjacmet@sunsite.dk\u003e\nCc: Alan Cox \u003calan@lxorguk.ukuu.org.uk\u003e\nCc: \u003cstable@kernel.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "377f2712289e96b80f9cf6019d4b639df13311da",
      "old_mode": 33188,
      "old_path": "drivers/serial/uartlite.c",
      "new_id": "ab2ab3c818342d4cb9fd67e402523a26bd696a2f",
      "new_mode": 33188,
      "new_path": "drivers/serial/uartlite.c"
    }
  ]
}
