id
stringlengths
40
40
instruction
stringlengths
68
308
input
stringlengths
17
33.4k
output
stringlengths
100
30k
6c28f2c0f2054865d82b5a6b2164eac956f15c94
Analyze and fix the following issue in the Linux kernel code: Fix typos in Documentation/: 'B'-'C'
Problem Details: This patch fixes typos in various Documentation txts. This patch addresses some words starting with the letters 'B'-'C'. There are also a few grammar fixes thrown in for Randy. ;) Signed-off-by: Matt LaPlante <kernel1@cyberdogtech.com> Signed-off-by: Adrian Bunk <bunk@stusta.de>
```diff diff --git a/Documentation/IPMI.txt b/Documentation/IPMI.txt index e5b93510e358..0e3924ecd76b 100644 --- a/Documentation/IPMI.txt +++ b/Documentation/IPMI.txt @@ -468,7 +468,7 @@ BMCs specified on the smb_addr line will be detected. Setting smb_dbg_probe to 1 will enable debugging of the probing and detection...
3f6dee9b2a22cc66050682287a77d5fccadb9733
Analyze and fix the following issue in the Linux kernel code: Fix some typos in Documentation/: 'A'
Problem Details: This patch fixes typos in various Documentation txts. This patch addresses some words starting with the letter 'A'. Signed-off-by: Matt LaPlante <kernel1@cyberdogtech.com> Acked-by: Randy Dunlap <rdunlap@xenotime.net> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Adrian Bunk <bunk@stusta.de>
```diff diff --git a/Documentation/IPMI.txt b/Documentation/IPMI.txt index 9f08d73d90bf..e5b93510e358 100644 --- a/Documentation/IPMI.txt +++ b/Documentation/IPMI.txt @@ -473,7 +473,7 @@ on the I2C bus to fail. The SMBus driver writes a "Get Device ID" IPMI message as a block write to the I2C bus and waits for a respo...
cab00891c5489cb6d0cde0a55d39bd5f2871fa70
Analyze and fix the following issue in the Linux kernel code: Still more typo fixes
Problem Details: Signed-off-by: Adrian Bunk <bunk@stusta.de>
```diff diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig index df37594c30f8..63965c78de8c 100644 --- a/arch/arm/mach-s3c2410/Kconfig +++ b/arch/arm/mach-s3c2410/Kconfig @@ -13,7 +13,7 @@ config MACH_ANUBIS bool "Simtec Electronics ANUBIS" select CPU_S3C2440 help - Say Y gere if you are...
44c09201a4178e08ed1c8cc37e7aea0683888f0a
Analyze and fix the following issue in the Linux kernel code: more misc typo fixes
Problem Details: Signed-off-by: Adrian Bunk <bunk@stusta.de>
```diff diff --git a/arch/cris/arch-v10/drivers/Kconfig b/arch/cris/arch-v10/drivers/Kconfig index 8b50e8402954..734d5f3a5304 100644 --- a/arch/cris/arch-v10/drivers/Kconfig +++ b/arch/cris/arch-v10/drivers/Kconfig @@ -550,7 +550,7 @@ config ETRAX_IDE select BLK_DEV_IDEDMA help Enable this to get support for AT...
095096038d637c477ef3c1b674612bcbc4d60c2d
Analyze and fix the following issue in the Linux kernel code: Fix several typos in drivers/
Problem Details: Signed-off-by: Adrian Bunk <bunk@stusta.de>
```diff diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index 731c3d5da0dc..88f462122a30 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig @@ -64,7 +64,7 @@ config DELL_RBU help Say m if you want to have the option of updating the BIOS for your DELL system. Note you need a De...
c73a668c096fe3dd23c1062018e82eb85f5c7043
Analyze and fix the following issue in the Linux kernel code: fix drivers/acpi/Kconfig typos
Problem Details: Signed-off-by: Adrian Bunk <bunk@stusta.de>
```diff diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 56c5ba874623..0f9d4be7ed75 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -253,7 +253,7 @@ config ACPI_CUSTOM_DSDT depends on !STANDALONE default n help - Thist option is to load a custom ACPI DSDT + This option is to loa...
fc31e838162c60ed81659da677d7f72917576269
Analyze and fix the following issue in the Linux kernel code: fix an arch/alpha/Kconfig typo
Problem Details: Signed-off-by: Adrian Bunk <bunk@stusta.de>
```diff diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index 2b36afd8e969..7e55ea66c6d4 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig @@ -534,7 +534,7 @@ config ARCH_DISCONTIGMEM_ENABLE bool "Discontiguous Memory Support (EXPERIMENTAL)" depends on EXPERIMENTAL help - Say Y to upport efficient h...
4802c6533af3223f43b9e4a1bb8a2a1c51f398b1
Analyze and fix the following issue in the Linux kernel code: [WATCHDOG] iTCO_wdt.c - pci_dev_put fix
Problem Details: for_each_pci_dev calls pci_get_device (and thus it calls pci_dev_get). So we need to do a pci_dev_put to keep the refcounting correct. (Thanks to Jiri Slaby <jirislaby@gmail.com>) Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
```diff diff --git a/drivers/char/watchdog/iTCO_wdt.c b/drivers/char/watchdog/iTCO_wdt.c index cbdfbf00cfb7..852ad8389bc7 100644 --- a/drivers/char/watchdog/iTCO_wdt.c +++ b/drivers/char/watchdog/iTCO_wdt.c @@ -45,7 +45,7 @@ /* Module and version information */ #define DRV_NAME "iTCO_wdt" #define DRV_VERSION ...
d2be893616c45e4ea4403d1ba501b7ee2f32b0ec
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4698): Fix S-Video configuration for Pinnacle PCTV-Sat
Problem Details: Thanks to Edgar Toernig <froese@gmx.de> for pointing this. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c index d23a42b1504f..a84903e0d810 100644 --- a/drivers/media/video/bt8xx/bttv-cards.c +++ b/drivers/media/video/bt8xx/bttv-cards.c @@ -2000,7 +2000,7 @@ struct tvcard bttv_tvcards[] = { .no_msp34xx = 1, .no_tda...
de98cdaf7ead419fe8b0a0a636ffb175489958fe
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4688): Fix msp343xG handling (regression from 2.6.16)
Problem Details: The msp3430G and msp3435G models cannot do Automatic Standard Detection. So these should be forced to BTSC. These chips are early production versions for the msp34xxG series and are quite rare. The workaround for kernel 2.6.18 is to use 'standard=32' as msp3400 module option. Due to broken handling of ...
```diff diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c index 56246b8578f3..cf43df3fe708 100644 --- a/drivers/media/video/msp3400-driver.c +++ b/drivers/media/video/msp3400-driver.c @@ -904,6 +904,8 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind) s...
6eb32a792ec19816d68529805f8169ce3ba1b1a2
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4685): Fix compiler warning in drivers/media/video/video-buf.c
Problem Details: Using a double cast to avoid compiler warnings when building for PAE. Compiler doesn't like direct casting of a 32 bit ptr to 64 bit integer. Signed-off-by: Martin J. Bligh <mbligh@google.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/video/video-buf.c b/drivers/media/video/video-buf.c index acc5ea936687..f429f49901b9 100644 --- a/drivers/media/video/video-buf.c +++ b/drivers/media/video/video-buf.c @@ -365,7 +365,12 @@ videobuf_iolock(struct videobuf_queue* q, struct videobuf_buffer *vb, if (NULL == fbuf) r...
4f43ac0cb228064cf6a253275ec1ecdab30c62f0
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4681): Cx88: fix analog capture notch filter
Problem Details: This patch changes the setting of the cx2388x notch filter to match that of the video capture sample frequency, removing some annoying interference lines THAT would appear when capturing composite video. This has been tested in PAL and NTSC TV norms. It sets the Y/C separation luma notch filter, which ...
```diff diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index f379ede3049a..241cabfadeeb 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c @@ -660,9 +660,7 @@ static unsigned int inline norm_fsc8(struct cx88_tvnorm *norm) static unsi...
76ac5dd6c055101ef9f8c6349cae4ef571039e93
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4679): Fix for NULL pointer dereference oops during boot.
Problem Details: A fix for intermittent oops's during boot which occurs in cx88_call_i2c_clients when dvb_attach is bringing up the frontend. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c index 6e705a2afdf8..88af23a93870 100644 --- a/drivers/media/video/cx88/cx88-i2c.c +++ b/drivers/media/video/cx88/cx88-i2c.c @@ -145,7 +145,7 @@ void cx88_call_i2c_clients(struct cx88_core *core, unsigned int cmd, void *arg) ...
6d98816fbe2b0a6887de0237021d6d900fbaff84
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4675): Pvrusb2: Fix VIDIOC_INT_[G|S]_REGISTER so that it actually works now
Problem Details: Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 11a327d167be..3d8cd0daf6a9 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -3140,7 +3140,8 @@ int pvr2_hdw_register_access(struct pvr2_hdw *hdw, st...
515c208db869459e4f2a58021df5aecf21c9a19f
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4671): Support for SAA7134-based AVerTV Hybrid A16AR
Problem Details: This adds support for a hybrid PAL/DVB/FM card. Unfortunately I tested only the DVB since I don't have any proper antenna available and I can receive even the DVB just barely so; I can hear noise in the FM part but I couldn't catch any station, then again I don't have an FM antenna either. The PAL/FM ...
```diff diff --git a/Documentation/video4linux/CARDLIST.saa7134 b/Documentation/video4linux/CARDLIST.saa7134 index 94cf695b1378..6fb82ac3bef0 100644 --- a/Documentation/video4linux/CARDLIST.saa7134 +++ b/Documentation/video4linux/CARDLIST.saa7134 @@ -97,3 +97,4 @@ 96 -> Medion Md8800 Quadro [16be:...
759100531d76f36714dde0f05a09245e9e921e4c
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4663): Pvrusb2: Get rid of private global context array brain damage
Problem Details: A previous attempt to deal with the upcoming loss of video_set_drvdata() and video_get_drvdata() resulted in logic which causes a circular locking dependency - also known as a deadlock. This changeset attacks the problem in a different manner, using a technique that no longer requires the problematic ...
```diff diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 156e375c93e9..f4c54ef4beaa 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c @@ -28,6 +28,7 @@ #include "pvrusb2-debug.h" #include "pvrusb2-v4l2.h" ...
32ffa9ae03c529df4208b63b4b17c6d84141faa3
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4662): Pvrusb2: Implement VIDIOC_INT_[G|S]_REGISTER
Problem Details: Implement VIDIOC_INT_SET_REGISTER and VIDIOC_INT_GET_REGISTER for the pvrusb2 driver. This is a debugging aid which will not be enabled unless CONFIG_VIDEO_ADV_DEBUG has been enabled. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 88604365777c..11a327d167be 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -24,6 +24,7 @@ #include <linux/slab.h> #include <linux/firmware.h> #inc...
025c5d66ad43bb53651379d0fb257daca568d3f9
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4658): Another fix because of dvb_attach
Problem Details: Fixed mt2060-usage with dvb_attach Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/dvb/dvb-usb/dibusb-common.c b/drivers/media/dvb/dvb-usb/dibusb-common.c index 76e37b5d6610..fd3a9902f98d 100644 --- a/drivers/media/dvb/dvb-usb/dibusb-common.c +++ b/drivers/media/dvb/dvb-usb/dibusb-common.c @@ -286,7 +286,7 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter ...
303cbeaaacd449545d259f82b966d070418c58af
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4653): Misc fixes for Nova-T 500
Problem Details: - forward the clock to the slave undivided - when sleeping the 3000 do not shutdown the clock Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/dvb/dvb-usb/dib0700_core.c b/drivers/media/dvb/dvb-usb/dib0700_core.c index a1a8165ab272..dca6c6985661 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_core.c +++ b/drivers/media/dvb/dvb-usb/dib0700_core.c @@ -103,8 +103,10 @@ static int dib0700_i2c_xfer(struct i2c_adapter *adap,struct ...
01b4bf31ce6ca6c1de31c773fa281a34fd98ff87
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4652): Misc fixes for DiB3000MC and Nova-T 500
Problem Details: - make the timing frequency update work. - fix AGC calibration for Nova-T 500 Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c index 58ecc8ff858a..182051011c91 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_devices.c +++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c @@ -25,7 +25,7 @@ static struct mt2060_config bristol_mt2060_config[2...
5bc636072d708287c106af15a4cd11c434c8329a
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4650): Misc fixes for dib0700 download
Problem Details: Several fixes for dib0700-module. (Firmware error checking, dependency) Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/dvb/dvb-usb/Kconfig b/drivers/media/dvb/dvb-usb/Kconfig index 135f287510c7..67cefdd2334a 100644 --- a/drivers/media/dvb/dvb-usb/Kconfig +++ b/drivers/media/dvb/dvb-usb/Kconfig @@ -70,6 +70,7 @@ config DVB_USB_DIB0700 tristate "DiBcom DiB0700 USB DVB devices (see help for supported d...
6958effedb0dc709966c22e7fd0e8210b5401b84
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4648): Hauppauge Nova-T 500 support added
Problem Details: This changeset finalizes the support of the Hauppauge Nova-T 500 (Dual DVB-T). It adds correct AGC setting for the 3000P, correct firmware download state detection. Additionally it fixes the mt2060-driver to be able to be used with dvb_attach. Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-o...
```diff diff --git a/drivers/media/dvb/dvb-usb/dib0700.h b/drivers/media/dvb/dvb-usb/dib0700.h index a2cd6970f4c2..ac84347f9d4c 100644 --- a/drivers/media/dvb/dvb-usb/dib0700.h +++ b/drivers/media/dvb/dvb-usb/dib0700.h @@ -32,13 +32,15 @@ extern int dvb_usb_dib0700_debug; struct dib0700_state { u8 channel_state; -...
c19da7efb34fc4b9ef672073ff0890ded7bc821a
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (4644): Multi-input fix for dtt200u
Problem Details: Small fix for multi input for dtt200u module. Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/dvb/dvb-usb/dtt200u.c b/drivers/media/dvb/dvb-usb/dtt200u.c index b834db74e77c..fa43a41d753b 100644 --- a/drivers/media/dvb/dvb-usb/dtt200u.c +++ b/drivers/media/dvb/dvb-usb/dtt200u.c @@ -88,7 +88,7 @@ static int dtt200u_rc_query(struct dvb_usb_device *d, u32 *event, int *state) st...
8db0201026fbb45c383176f539dc8af2a6871ab8
Analyze and fix the following issue in the Linux kernel code: [MIPS] Fix wreckage after removal of tickadj; convert to GENERIC_TIME.
Problem Details: Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
```diff diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 9fe90507e6c7..bfab055ad7cc 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -803,6 +803,10 @@ config GENERIC_CALIBRATE_DELAY bool default y +config GENERIC_TIME + bool + default y + config SCHED_NO_NO_OMIT_FRAME_POINTER bool default y ...
b58e5d050ff60335b106a895a87a59a8f5475db4
Analyze and fix the following issue in the Linux kernel code: [MIPS] Fix size of zones_size and zholes_size array
Problem Details: Commit f06a96844a577c43249fce25809a4fae07407f46 broke MIPS. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
```diff diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 5b06349af2d5..88b72c9a8495 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -163,10 +163,10 @@ static int __init page_is_ram(unsigned long pagenr) void __init paging_init(void) { - unsigned long zones_size[] = { 0, }; + unsigned long ...
d599def5cd81439e7da04dc6754b257043f5e584
Analyze and fix the following issue in the Linux kernel code: [MIPS] SB1250: Interrupt handler fixes
Problem Details: Mask cp0.status against cp0.cause. Additionally, spurious interrupts are not recorded. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
```diff diff --git a/arch/mips/sibyte/sb1250/irq.c b/arch/mips/sibyte/sb1250/irq.c index a451b4c7732d..f9bd9f074517 100644 --- a/arch/mips/sibyte/sb1250/irq.c +++ b/arch/mips/sibyte/sb1250/irq.c @@ -442,7 +442,7 @@ asmlinkage void plat_irq_dispatch(struct pt_regs *regs) * blasting the high 32 bits. */ - pending...
8ccb3dcd1f8e80e8702642e1de26541b52f6bb7c
Analyze and fix the following issue in the Linux kernel code: x86: Fix booting with "no387 nofxsr"
Problem Details: Jesper Juhl reported that testing the software math-emulation by forcing "no387" doesn't work on modern CPU's. The reason was two-fold: - you also need to pass in "nofxsr" to make sure that we not only don't touch the old i387 legacy hardware, it also needs to disable the modern XMM/FXSR sequen...
```diff diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c index 2799baaadf45..b2f24d57fddd 100644 --- a/arch/i386/kernel/cpu/common.c +++ b/arch/i386/kernel/cpu/common.c @@ -184,7 +184,16 @@ static void __cpuinit get_cpu_vendor(struct cpuinfo_x86 *c, int early) static int __init x86_fxsr_set...
8b2a1fd1b394c60eaa2587716102dd5e9b4e5990
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: check pr_debug() arguments
Problem Details: check pr_debug() arguments When DEBUG isn't defined pr_debug() is defined away as an empty macro. By throwing away the arguments we allow completely incorrect code to build. Instead let's make it an empty inline which checks arguments and mark it so gcc can check the format specification. This resu...
```diff diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 4d00988dad03..80f39cab470a 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -216,8 +216,10 @@ extern void dump_stack(void); #define pr_debug(fmt,arg...) \ printk(KERN_DEBUG fmt,##arg) #else -#define pr_debug(fmt,arg...) \ ...
3879b6b6a8ee39b50559b2c2dd083c557d39e0f8
Analyze and fix the following issue in the Linux kernel code: [PATCH] isdn: more pr_debug() fixes
Problem Details: drivers/isdn/sc/event.c: In function 'indicate_status': drivers/isdn/sc/event.c:49: error: 'events' undeclared (first use in this function) drivers/isdn/sc/event.c:49: error: (Each undeclared identifier is reported only once drivers/isdn/sc/event.c:49: error: for each function it appears in.) drivers/i...
```diff diff --git a/drivers/isdn/sc/event.c b/drivers/isdn/sc/event.c index 5b8c7c1a7663..57367325ef04 100644 --- a/drivers/isdn/sc/event.c +++ b/drivers/isdn/sc/event.c @@ -45,8 +45,10 @@ int indicate_status(int card, int event,ulong Channel,char *Data) { isdn_ctrl cmd; +#ifdef DEBUG pr_debug("%s: Indicating e...
20f43535694bb19e1bb45917b73b7e5cd5d74818
Analyze and fix the following issue in the Linux kernel code: [PATCH] isdn-debug-build-fix
Problem Details: When pr_debug() is enabled: drivers/isdn/sc/command.c: In function 'command': drivers/isdn/sc/command.c:107: error: 'commands' undeclared (first use in this function) drivers/isdn/sc/command.c:107: error: (Each undeclared identifier is reported only once drivers/isdn/sc/command.c:107: error: for each ...
```diff diff --git a/drivers/isdn/sc/command.c b/drivers/isdn/sc/command.c index b4b24335f716..04b8a58f03b5 100644 --- a/drivers/isdn/sc/command.c +++ b/drivers/isdn/sc/command.c @@ -103,9 +103,6 @@ int command(isdn_ctrl *cmd) return -ENODEV; } - pr_debug("%s: Received %s command from Link Layer\n", - sc_adapte...
42d3fb5a8771b840e0bd6dbcd0c734883dd90b6f
Analyze and fix the following issue in the Linux kernel code: [PATCH] arm build fail: vfpsingle.c
Problem Details: It looks like Zach Brown's patch pr_debug-check-pr_debug-arguments worked as inteded. That is, it doesn't "allow completely incorrect code to build." :). The arm build fails with the following message: CC arch/arm/vfp/vfpsingle.o arch/arm/vfp/vfpsingle.c: In function `__vfp_single_normalisero...
```diff diff --git a/arch/arm/vfp/vfpsingle.c b/arch/arm/vfp/vfpsingle.c index ab5e9503bae5..0221ba3bc799 100644 --- a/arch/arm/vfp/vfpsingle.c +++ b/arch/arm/vfp/vfpsingle.c @@ -198,8 +198,10 @@ u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exce vfp_single_dump("pack: final", vs); { ...
c8c94b11399b1dc7f08f7b28ec4289a727f0daee
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: trident: use size_t length modifier in pr_debug format arguments
Problem Details: trident: use size_t length modifier in pr_debug format arguments Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/sound/oss/trident.c b/sound/oss/trident.c index ce79cd82478a..147c816a1f22 100644 --- a/sound/oss/trident.c +++ b/sound/oss/trident.c @@ -1862,7 +1862,7 @@ trident_read(struct file *file, char __user *buffer, size_t count, loff_t * ppos unsigned swptr; int cnt; - pr_debug("trident: trident_re...
8057de64fd4734ae3e70cf76deb77f1c19958494
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: ifb: replace missing comma to separate pr_debug arguments
Problem Details: ifb: replace missing comma to separate pr_debug arguments Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index 6469130c1413..c26a4b8e552a 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c @@ -200,8 +200,8 @@ static struct net_device_stats *ifb_get_stats(struct net_device *dev) pr_debug("tasklets stats %ld:%ld:%ld:%ld:%ld:%ld:%ld:%ld:%ld \n", dp->st_tas...
cb7cf57a6196a4b27e5d2f71debefc80a2fa1725
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: dell_rbu: fix pr_debug argument warnings
Problem Details: dell_rbu: fix pr_debug argument warnings Use size_t length modifier when outputting size_t and use %p instead of %lu for 'u8 *'. Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/drivers/firmware/dell_rbu.c b/drivers/firmware/dell_rbu.c index 23b086685453..fc17599c905e 100644 --- a/drivers/firmware/dell_rbu.c +++ b/drivers/firmware/dell_rbu.c @@ -227,7 +227,7 @@ static int packetize_data(void *data, size_t length) int packet_length; u8 *temp; u8 *end = (u8 *) data + l...
5df0a29d9c2239c28b5864037b51ac3d747439a9
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: tipar: repair nonexistant pr_debug argument use
Problem Details: tipar: repair nonexistant pr_debug argument use I guessed what the pr_debug meant by 'data'. Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/drivers/char/tipar.c b/drivers/char/tipar.c index d30dc09dbbc9..9df0ca1be0e3 100644 --- a/drivers/char/tipar.c +++ b/drivers/char/tipar.c @@ -224,14 +224,16 @@ probe_ti_parallel(int minor) { int i; int seq[] = { 0x00, 0x20, 0x10, 0x30 }; + int data; for (i = 3; i >= 0; i--) { outbyte(3,...
f2b9ecc41654256ae8829193d3380935833ae976
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: umem: repair nonexistant bh pr_debug reference
Problem Details: umem: repair nonexistant bh pr_debug reference Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/drivers/block/umem.c b/drivers/block/umem.c index 5d8925bd9045..cbb9d0f21acc 100644 --- a/drivers/block/umem.c +++ b/drivers/block/umem.c @@ -552,7 +552,8 @@ static void process_page(unsigned long data) static int mm_make_request(request_queue_t *q, struct bio *bio) { struct cardinfo *card = q-...
5c1fdf4150c3b4e486020d0ada787469900d66ed
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: sysfs: use size_t length modifier in pr_debug format arguments
Problem Details: sysfs: use size_t length modifier in pr_debug format arguments Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index cf3786625bfa..146f1dedec84 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -157,8 +157,8 @@ sysfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) if ((retval = fill_read_buffer(file->f_dentry,buffer))) goto out; } - p...
4779efca147475a708e84d902e096bbd20e613b7
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: configfs: use size_t length modifier in pr_debug format argument
Problem Details: configfs: use size_t length modifier in pr_debug format argument Signed-off-by: Zach Brown <zach.brown@oracle.com> Acked-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/fs/configfs/file.c b/fs/configfs/file.c index 85105e50f7db..e6d5754a715e 100644 --- a/fs/configfs/file.c +++ b/fs/configfs/file.c @@ -137,8 +137,8 @@ configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *pp if ((retval = fill_read_buffer(file->f_dentry,buffer))) goto ...
691578cd558e647dd89ae5bc74a2307bce821186
Analyze and fix the following issue in the Linux kernel code: [PATCH] pr_debug: aio: use size_t length modifier in pr_debug format arguments
Problem Details: aio: use size_t length modifier in pr_debug format arguments Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/fs/aio.c b/fs/aio.c index 2e0d1505ee36..94766599db00 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -675,7 +675,7 @@ static ssize_t aio_run_iocb(struct kiocb *iocb) } if (!(iocb->ki_retried & 0xff)) { - pr_debug("%ld retry: %d of %d\n", iocb->ki_retried, + pr_debug("%ld retry: %zd of %zd\n", iocb-...
d33a56d3639eba077489c937943a32ef6237b1b8
Analyze and fix the following issue in the Linux kernel code: [PATCH] md: fix duplicity of levels in md.txt
Problem Details: md.txt has two sections describing the 'level' sysfs attribute, and some of the text is out-of-date. So make just one section, and make it right. Cc: Christian Kujau <evil@g-house.de> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds ...
```diff diff --git a/Documentation/md.txt b/Documentation/md.txt index 084ecf4eb2f8..9ae9e4078985 100644 --- a/Documentation/md.txt +++ b/Documentation/md.txt @@ -154,11 +154,12 @@ contains further md-specific information about the device. All md devices contain: level - a text file indicating the 'raid level...
9b1d1dac181d8c1b9492e05cee660a985d035a06
Analyze and fix the following issue in the Linux kernel code: [PATCH] md: new sysfs interface for setting bits in the write-intent-bitmap
Problem Details: Add a new sysfs interface that allows the bitmap of an array to be dirtied. The interface is write-only, and is used as follows: echo "1000" > /sys/block/md2/md/bitmap (dirty the bit for chunk 1000 [offset 0] in the in-memory and on-disk bitmaps of array md2) echo "1000-2000" > /sys/block/md1/md/bit...
```diff diff --git a/Documentation/md.txt b/Documentation/md.txt index 0668f9dc9d29..084ecf4eb2f8 100644 --- a/Documentation/md.txt +++ b/Documentation/md.txt @@ -410,6 +410,15 @@ also have than sectors, this my be larger than the number of actual errors by a factor of the number of sectors in a page. +...
b5c124af69119c1b5c1e728bd2e7b5b1fad9b7be
Analyze and fix the following issue in the Linux kernel code: [PATCH] md: fix a comment that is wrong in raid5.h
Problem Details: Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/include/linux/raid/raid5.h b/include/linux/raid/raid5.h index 20ed4c997636..f1e28952a82f 100644 --- a/include/linux/raid/raid5.h +++ b/include/linux/raid/raid5.h @@ -195,8 +195,9 @@ struct stripe_head { * it to the count of prereading stripes. * When write is initiated, or the stripe refcnt == ...
cc1092019ce3d9b3e85a285b41e852ff94a6b590
Analyze and fix the following issue in the Linux kernel code: [PATCH] dm: add debug macro
Problem Details: Add CONFIG_DM_DEBUG and DMDEBUG() macro. Signed-off-by: Bryn Reeves <breeves@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig index 6dd31a291d84..949c71fbfbb5 100644 --- a/drivers/md/Kconfig +++ b/drivers/md/Kconfig @@ -201,6 +201,14 @@ config BLK_DEV_DM If unsure, say N. +config DM_DEBUG + boolean "Device mapper debugging support" + depends on BLK_DEV_DM && EXPERIMENTAL + -...
695368ac3302174531429a90d55c3f7f9b83906e
Analyze and fix the following issue in the Linux kernel code: [PATCH] dm snapshot: fix freeing pending exception
Problem Details: If a snapshot became invalid while there are outstanding pending_exceptions, when pending_complete() processes each one it forgets to remove the corresponding exception from its exception table before freeing it. Fix this by moving the 'out:' label up one statement so that remove_exception() is always...
```diff diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 638c8d90da0e..5281e0094072 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c @@ -631,8 +631,7 @@ static void error_bios(struct bio *bio) } } -static void __invalidate_snapshot(struct dm_snapshot *s, - struct pending_exception *pe,...
927ffe7c9a156e259aae31c07dd76072c459ec57
Analyze and fix the following issue in the Linux kernel code: [PATCH] dm snapshot: fix metadata writing when suspending
Problem Details: When suspending a device-mapper device, dm_suspend() sleeps until all necessary I/O is completed. This state is triggered by a callback from persistent_commit(). But some I/O can still be issued *after* the callback (to prepare the next metadata area for use if the current one is full). This patch d...
```diff diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 002417da1224..99cdffa7fbfe 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c @@ -536,6 +536,16 @@ static void persistent_commit(struct exception_store *store, if (r) ps->valid = 0; + /...
e4ff496db72473949ddfe29a37471969d2f1d4ee
Analyze and fix the following issue in the Linux kernel code: [PATCH] dm snapshot: make read and write exception functions void
Problem Details: read_exception() and write_exception() only return an error if supplied with an out-of-range index. If this ever happens it's the result of a bug in the calling code so we handle this with an assertion and remove the error handling in the callers. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Si...
```diff diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 8b4cd02f75a8..002417da1224 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c @@ -296,42 +296,29 @@ static int write_header(struct pstore *ps) */ static struct disk_exception *get_exception(st...
f9cea4f70734f743e0beb55552a9794fa5032645
Analyze and fix the following issue in the Linux kernel code: [PATCH] dm snapshot: fix metadata error handling
Problem Details: Fix the error handling when store.read_metadata is called: the error should be returned immediately. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 89f8dd1bfaa0..58c444fb189c 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c @@ -387,17 +387,6 @@ static inline ulong round_up(ulong n, ulong size) return (n + size) & ~size; } -static void read_snapshot_metadata(struct dm_snapshot *...
92c060a692a0c3482cdfcaf346cb2f7572368895
Analyze and fix the following issue in the Linux kernel code: [PATCH] dm snapshot: fix invalidation ENOMEM
Problem Details: Fix ENOMEM error sign. Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 1d0fafda0f76..7c14867b5903 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c @@ -1034,7 +1034,7 @@ static int __origin_write(struct list_head *snapshots, struct bio *bio) pe = __find_pending_exception(snap, bio); if (!pe) { - __...
e3f6ac6123be6f4ba14d71af0da0e8d3d39c33ed
Analyze and fix the following issue in the Linux kernel code: [PATCH] dm: fix alloc_dev error path
Problem Details: While reading the code I found a bug in the error path in alloc_dev in dm.c When blk_alloc_queue fails there is no call to free_minor. This patch fixes the problem. Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <...
```diff diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 5792686936c1..81717e273327 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -943,7 +943,7 @@ static struct mapped_device *alloc_dev(int minor) md->queue = blk_alloc_queue(GFP_KERNEL); if (!md->queue) - goto bad1; + goto bad1_free_minor; md->q...
e90dae1f58d475b71bcc4eebf6d4fd5217ed85c7
Analyze and fix the following issue in the Linux kernel code: [PATCH] dm: support ioctls on mapped devices: fix with fake file
Problem Details: The new ioctl code passes the wrong file pointer to the underlying device. No file pointer is available so make a temporary fake one. ioctl_by_bdev() does set_fs(KERNEL_DS) so it's for ioctls originating within the kernel and unsuitable here. We are processing ioctls that originated in userspace and ...
```diff diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 2a6bad451f86..00234909b3db 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -104,8 +104,14 @@ static int linear_ioctl(struct dm_target *ti, struct inode *inode, { struct linear_c *lc = (struct linear_c *) ti->private; str...
70abac6e4f4bfb05a8198e22225f9e066239c7a2
Analyze and fix the following issue in the Linux kernel code: [PATCH] nvidia fbdev: fix powerpc xmon scribbles
Problem Details: xmon writes garbage on the screen because the nvidia console driver has changed the line pitch from what the firmware set it to. Fix it by making the nvidia driver inform the btext engine (which xmon uses if the screen is its output device) about changes to display resolution. Signed-off-by: Paul Mac...
```diff diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index 731edf7cb0a0..eb24107bcc81 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c @@ -28,6 +28,9 @@ #include <asm/prom.h> #include <asm/pci-bridge.h> #endif +#ifdef CONFIG_BOOTX_TEXT +#include <asm/btext....
a09fd48f8fb6ecb8bf85efdd884b21b6201ef9cc
Analyze and fix the following issue in the Linux kernel code: [PATCH] fbdev: correct buffer size limit in fbmem_read_proc()
Problem Details: Address http://bugzilla.kernel.org/show_bug.cgi?id=7189 It should check `clen', not `len'. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: <jurij@wooyd.org> Cc: "Antonino A. Daplas" <adaplas@pol.net> Cc: <stable@kernel.org> Cc: Willy Tarreau <w@1wt.eu> Signed-off-by: Andrew Morton <akpm@...
```diff diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 17961e3ecaa0..93ffcdd95f50 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c @@ -554,7 +554,8 @@ static int fbmem_read_proc(char *buf, char **start, off_t offset, int clen; clen = 0; - for (fi = registered_fb; fi < &registered_f...
9b262144a1b84c781555efd68769711279ebfba3
Analyze and fix the following issue in the Linux kernel code: [PATCH] Documentation fixes in intel810.txt
Problem Details: Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> Acked-by: Randy Dunlap <rdunlap@xenotime.net> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/Documentation/fb/intel810.txt b/Documentation/fb/intel810.txt index 4f0d6bc789ef..be3e7836abef 100644 --- a/Documentation/fb/intel810.txt +++ b/Documentation/fb/intel810.txt @@ -9,8 +9,9 @@ Intel 810/815 Framebuffer driver ================================================================ A. Intr...
5c60b118d62c14ad7586ed6a6e537c3294c90227
Analyze and fix the following issue in the Linux kernel code: [PATCH] mbxfb: Fix framebuffer size smaller than requested
Problem Details: This patch fixes a bug where we obtain a smaller resolution than requested. (eg: in 640x480, only 639x479 usable pixels). This was due to 1 being substracted from the xres and yres vars two times: first in mbxfb.c and then in the macros from reg_bits.h. This patch removes the minus ones from the mbxf...
```diff diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c index cfc6bf3615b5..a32d1af79e07 100644 --- a/drivers/video/mbx/mbxfb.c +++ b/drivers/video/mbx/mbxfb.c @@ -255,8 +255,8 @@ static int mbxfb_set_par(struct fb_info *info) /* setup resolution */ gsctrl &= ~(FMsk(GSCTRL_GSWIDTH) | FMsk(GSCTR...
8bc218410d6c2b22a7581fac6f3dc2ac1f8fc99f
Analyze and fix the following issue in the Linux kernel code: [PATCH] mbxfb: Fix a chip bug? resulting in wrong pixclock
Problem Details: This is a workaround for what I think is a bug in the 2700G chip. The PLL output frequency is adustable using 3 values (M, N and P. See code for formula). The N value range is documented to be 1 to 7 but when it is set to 1, the output frequency is lower than it should be (divided by 2), giving unex...
```diff diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c index 6849ab75d403..cfc6bf3615b5 100644 --- a/drivers/video/mbx/mbxfb.c +++ b/drivers/video/mbx/mbxfb.c @@ -118,8 +118,19 @@ static unsigned int mbxfb_get_pixclock(unsigned int pixclock_ps, /* convert pixclock to KHz */ pixclock = PICOS2KHZ(...
946c4eab86cc67dac6021b56f45495f59b3970b4
Analyze and fix the following issue in the Linux kernel code: [PATCH] savagefb: Use generic DDC reading
Problem Details: Update driver to use generic DDC reading [khali@linux-fr.org: fix oops in i2c handling] Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Jurriaan <thunder7@xs4all.nl> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torval...
```diff diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 90911005d9de..0e371e060871 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -1148,6 +1148,7 @@ config FB_SAVAGE depends on FB && PCI && EXPERIMENTAL select I2C_ALGOBIT if FB_SAVAGE_I2C select I2C if FB_SAVAGE_I2C + select FB...
ca27ac4cc6caa73740122a5f3d601c8a27b89e7c
Analyze and fix the following issue in the Linux kernel code: [PATCH] au1100fb: Add option to enable/disable the cursor
Problem Details: - add cursor enable/disable, very useful if you wish a full screen boot logo. Cursor can be disabled from kernel command line: video=au1100fb:nocursor,panel:Toppoly_TD035STED4 or from sysfs interface: echo 1 > /sys/module/au1100fb/parameters/nocursor - fix up some wrong indentation issues....
```diff diff --git a/drivers/video/au1100fb.c b/drivers/video/au1100fb.c index f25d5d648333..ef5c16f7f5a6 100644 --- a/drivers/video/au1100fb.c +++ b/drivers/video/au1100fb.c @@ -8,6 +8,7 @@ * <c.pellegrin@exadron.com> * * PM support added by Rodolfo Giometti <giometti@linux.it> + * Cursor enable/disable by Rod...
a4bea10eca68152e84ffc4eaeb9d20ec2ac34664
Analyze and fix the following issue in the Linux kernel code: [PATCH] Allow ide_generic_all to be used modular and built in
Problem Details: Allow ide/pci/generic to claim chipsets as a a module or when built-in. It requires using "all_generic_ide" as a boot option. Signed-off-by: Patrick Jefferson <henj@hp.com> Acked-by: Alan Cox <alan@redhat.com> Closes-Bug: 7017 Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds...
```diff diff --git a/drivers/ide/pci/generic.c b/drivers/ide/pci/generic.c index 78810ba982e9..0cb7b9b520ea 100644 --- a/drivers/ide/pci/generic.c +++ b/drivers/ide/pci/generic.c @@ -41,15 +41,8 @@ static int ide_generic_all; /* Set to claim all devices */ -#ifndef MODULE -static int __init ide_generic_all_on(cha...
913759ac90a727b86da72efcfb70931f497d1cb7
Analyze and fix the following issue in the Linux kernel code: [PATCH] ide: Fix crash on repeated reset
Problem Details: Michal Miroslaw reported a problem (bugzilla #7023) where a user initiated reset while the IDE layer was already resetting the channel caused a crash, and provided a rough fix. This is a slightly cleaner version of the fix which tracks the reset state and blocks further reset requests while a reset is...
```diff diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index 77703acaec17..badde6331775 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c @@ -998,6 +998,7 @@ static ide_startstop_t atapi_reset_pollfunc (ide_drive_t *drive) } /* done polling */ hwgroup->polling = 0; + hwgroup->resettin...
8c2c0118b86183bf4826db990cae5c8a8d6c6746
Analyze and fix the following issue in the Linux kernel code: [PATCH] ide: reprogram disk pio timings on resume
Problem Details: Add a step to the IDE PM state machine that reprograms disk PIO timings as the first step on resume. This prevents ide deadlock on resume-from-ram on my nforce3-based laptop. An earlier implementation was written entirely within the amd74xx ide driver, but Alan helpfully pointed out that this is the c...
```diff diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 8d26619ba16b..ba6039b55b41 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -134,7 +134,8 @@ enum { ide_pm_flush_cache = ide_pm_state_start_suspend, idedisk_pm_standby, - idedisk_pm_idle = ide_pm_state_start_resume, + idedisk_p...
5ac24697699b394cdebac0a2329ce3af247d6a3b
Analyze and fix the following issue in the Linux kernel code: [PATCH] ide: backport piix fixes from libata into the legacy driver
Problem Details: There are three flags being set by default by the PIIX driver for speeds > PIO 1, and one not being cleared properly on fallback to PIO0. The most important one is the prefetch/post write control which only works for ATA and can do bad things with ATAPI. The patch does its best to set the flags corre...
```diff diff --git a/drivers/ide/pci/piix.c b/drivers/ide/pci/piix.c index eb5bab1890cd..cdc3aab9ebcb 100644 --- a/drivers/ide/pci/piix.c +++ b/drivers/ide/pci/piix.c @@ -222,13 +222,15 @@ static void piix_tune_drive (ide_drive_t *drive, u8 pio) u16 master_data; u8 slave_data; static DEFINE_SPINLOCK(tune_lock); +...
14e0a193209aeea810ad3d66388f422dc79c5b40
Analyze and fix the following issue in the Linux kernel code: [PATCH] ide: fix revision comparison in ide_in_drive_list
Problem Details: Fix ide_in_drive_list: drive_table->id_firmware should be searched *in* id->fw_rev, not vice versa. Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signe...
```diff diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 22ef73eb1f68..53feaf82576e 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c @@ -145,7 +145,7 @@ int ide_in_drive_list(struct hd_driveid *id, const struct drive_list_entry *driv { for ( ; drive_table->id_model ; drive_table++) i...
0750508ae6479d4ac6154b35c5b82929f31efb03
Analyze and fix the following issue in the Linux kernel code: [PATCH] ide_dma_speed() fixes
Problem Details: ide_dma_speed() fails to actually honor the IDE drivers' mode support masks) because of the bogus checks -- thus, selecting the DMA transfer mode that the driver explicitly refuses to support is possible. Additionally, there is no check for validity of the UltraDMA mode data in the drive ID, and the f...
```diff diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index 850ef63cc986..8237d89eec6e 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c @@ -71,75 +71,96 @@ EXPORT_SYMBOL(ide_xfer_verbose); /** * ide_dma_speed - compute DMA speed * @drive: drive - * @mode; intended mode + * @mode: modes a...
83d7dbc4095a0c314b191c573be5fb4fa6ce0897
Analyze and fix the following issue in the Linux kernel code: [PATCH] Make number of IDE interfaces configurable
Problem Details: Make IDE_HWIFS configurable if EMBEDDED This lets us lop as much as 16k off an x86 build. It's a little ugly, but it's dead simple. Note the fix for HWIFS < 2. Sizing interfaces dynamically unfortunately turns out to be pretty major surgery. add/remove: 0/1 grow/shrink: 0/11 up/down: 0/-16182 (-16...
```diff diff --git a/drivers/ide/Kconfig b/drivers/ide/Kconfig index 0524f17175fd..abcabb295592 100644 --- a/drivers/ide/Kconfig +++ b/drivers/ide/Kconfig @@ -56,7 +56,7 @@ if IDE config IDE_MAX_HWIFS int "Max IDE interfaces" - depends on ALPHA || SUPERH || IA64 + depends on ALPHA || SUPERH || IA64 || EMBEDDED d...
ce42f19137225d01be9388a73703df40fb7af80f
Analyze and fix the following issue in the Linux kernel code: [PATCH] IDE error handling fixes
Problem Details: In 2.6.15.1 I encountered some IDE crashes when unplugging IDE cables to emulate disk errors. Below is a patch against 2.6.16 which I think still applies. 1. The first BUG_ON could trigger when a PREFLUSH IO fails (it would fail the original barrier request which hasn't been marked REQ_STARTED ...
```diff diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 38479a29d3e1..8d26619ba16b 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -59,8 +59,6 @@ static int __ide_end_request(ide_drive_t *drive, struct request *rq, { int ret = 1; - BUG_ON(!blk_rq_started(rq)); - /* * if failfast...
a616058b7815aafb2163fc795e02a055b0dbc5e2
Analyze and fix the following issue in the Linux kernel code: [PATCH] sched: remove unnecessary sched group allocations
Problem Details: Remove dynamic sched group allocations for MC and SMP domains. These allocations can easily fail on big systems(1024 or so CPUs) and we can live with out these dynamic allocations. [akpm@osdl.org: build fix] Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Acked-by: Ingo Molnar <mingo@elte.hu...
```diff diff --git a/kernel/sched.c b/kernel/sched.c index ddf418810c39..6b956bd9b49a 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -5489,15 +5489,17 @@ __setup ("isolcpus=", isolated_cpu_setup); * covered by the given span, and will set each group's ->cpumask correctly, * and ->cpu_power to 0. */ -static v...
2c136efcf6f58d07512c4df83eb494597fe0d229
Analyze and fix the following issue in the Linux kernel code: [PATCH] pata_hpt366: fix typo
Problem Details: switch(reg1 & 0x700) { case 5: info_hpt366.private_data = &hpt366_40; break; case 9: info_hpt366.private_data = &hpt366_25; break; default: info_hpt366.private_data = &hpt366_33; break; } The above runs always default part. It should be "(reg1 & 0x700) >> 8". Signed-off-by: O...
```diff diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index cf656ecbe507..8c757438f350 100644 --- a/drivers/ata/pata_hpt366.c +++ b/drivers/ata/pata_hpt366.c @@ -429,7 +429,7 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id) /* PCI clocking determines the ATA ti...
873ef76bdc56561df75ef5c3f3842c3a64da795d
Analyze and fix the following issue in the Linux kernel code: [PATCH] restore parport_pc probing on powermac
Problem Details: The last change for partport_pc did fix the common case for all PowerMacs, but it broke the case for PCI multiport IO cards. In fact, the config option CONFIG_PARPORT_PC_SUPERIO=y lead to a hard crash when cups probed the parport driver. It enables the winbond and smsc probing. Remove the PARPORT_BA...
```diff diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 98189d8efaca..4f0097f31bdb 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c @@ -415,12 +415,6 @@ static int pSeries_check_legacy_ioport(unsigned int baseport) re...
17a4506d0eb1f78c9018c06a79e7dd09ae78c3a8
Analyze and fix the following issue in the Linux kernel code: [PATCH] ISDN warning fixes
Problem Details: Clean up warnings in drivers/isdn by using long not int for the values where we pass void * and cast to integer types. The code is ok (ok passing the stuff this way isn't pretty but the code is valid). In all the cases I checked out the right thing happens anyway but this removes all the warnings. S...
```diff diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index e10350360f2f..e4823ab2b127 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn/hisax/config.c @@ -1721,11 +1721,11 @@ static void hisax_b_l1l2(struct hisax_if *ifc, int pr, void *arg) hisax_b_sched_event(bcs, B_RCVBUFREADY);...
397f4ebf4f317b1d5ecd678a8559a5cb5c6975c3
Analyze and fix the following issue in the Linux kernel code: [PATCH] ipmi: fix uninitialized data bug
Problem Details: gcc issues the following warning: drivers/char/ipmi/ipmi_si_intf.c: In function ‘init_ipmi_si’: drivers/char/ipmi/ipmi_si_intf.c:1729: warning: ‘data.irq’ may be used uninitialized in this function This is indeed a bug. data.irq is completely uninitialized in some code paths. Worse than tha...
```diff diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 908521e36d81..ad9ea06caee0 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -1734,6 +1734,7 @@ static void __devinit dmi_find_bmc(void) int rv; while ((dev = dmi_f...
afefdbb28a0a2af689926c30b94a14aea6036719
Analyze and fix the following issue in the Linux kernel code: [PATCH] VFS: Make filldir_t and struct kstat deal in 64-bit inode numbers
Problem Details: These patches make the kernel pass 64-bit inode numbers internally when communicating to userspace, even on a 32-bit system. They are required because some filesystems have intrinsic 64-bit inode numbers: NFS3+ and XFS for example. The 64-bit inode numbers are then propagated to userspace automatical...
```diff diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index 8a31fc1bfb15..ad6173651995 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -111,22 +111,26 @@ struct osf_dirent_callback { static int osf_filldir(void *__buf, const char *name, int namlen, loff_t offse...
fac99d97469e7f91102f97101bea620e5f073196
Analyze and fix the following issue in the Linux kernel code: sh: Fixup __raw_read_trylock().
Problem Details: generic__raw_read_trylock() was broken, fix up the __raw_read_trylock() implementation for something sensible. Taken from m32r, which has the same use cases. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
```diff diff --git a/include/asm-sh/spinlock.h b/include/asm-sh/spinlock.h index 54458fd24981..2586eef07d57 100644 --- a/include/asm-sh/spinlock.h +++ b/include/asm-sh/spinlock.h @@ -88,7 +88,14 @@ static inline void __raw_write_unlock(raw_rwlock_t *rw) __raw_spin_unlock(&rw->lock); } -#define __raw_read_trylock(l...
711fa8096863e4b50bb97f9ebc44606dc2182ac3
Analyze and fix the following issue in the Linux kernel code: sh: build fixes for defconfigs.
Problem Details: Get all of the defconfigs building again. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
```diff diff --git a/arch/sh/boards/landisk/irq.c b/arch/sh/boards/landisk/irq.c index a006d6443225..5891fcd80405 100644 --- a/arch/sh/boards/landisk/irq.c +++ b/arch/sh/boards/landisk/irq.c @@ -83,7 +83,7 @@ static struct hw_interrupt_type landisk_irq_type = { static void make_landisk_irq(unsigned int irq) { disab...
7525d4bf991879f489c59988cbf162558b9d6489
Analyze and fix the following issue in the Linux kernel code: [PATCH] hp100: fix conditional compilation mess
Problem Details: The previous hp100 changeset attempted to kill warnings, but was only tested on !CONFIG_ISA platforms. The correct conditional compilation setup involves tested CONFIG_ISA rather than just MODULE. Fixes link on CONFIG_ISA platforms (i386) in current -git. Signed-off-by: Jeff Garzik <jeff@garzik.org>...
```diff diff --git a/drivers/net/Space.c b/drivers/net/Space.c index 9953201c670d..a67f5efc983f 100644 --- a/drivers/net/Space.c +++ b/drivers/net/Space.c @@ -165,7 +165,7 @@ static struct devprobe2 mca_probes[] __initdata = { * look for EISA/PCI/MCA cards in addition to ISA cards). */ static struct devprobe2 isa_...
0f248d9cde673a481eb3182909b54d07e9d58f72
Analyze and fix the following issue in the Linux kernel code: IB/ehca: Fix device registration
Problem Details: Move the call to ib_register_device() later, since a device should not be registered until it is completely read to be used. This fixes crashes that occur if an upper-layer driver such as IPoIB is loaded before the ehca module. Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com> Signed-off-by: Rolan...
```diff diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index 2380994418a5..024d511c4b58 100644 --- a/drivers/infiniband/hw/ehca/ehca_main.c +++ b/drivers/infiniband/hw/ehca/ehca_main.c @@ -49,7 +49,7 @@ MODULE_LICENSE("Dual BSD/GPL"); MODULE_AUTHOR("Christoph Raisch <rais...
13b18c86176cab34ef30ef0a5962fcb0305f7269
Analyze and fix the following issue in the Linux kernel code: IB/ipath: Fix RDMA reads
Problem Details: The PSN used to generate the request following a RDMA read was incorrect and some state booking wasn't maintained correctly. This patch fixes that. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
```diff diff --git a/drivers/infiniband/hw/ipath/ipath_rc.c b/drivers/infiniband/hw/ipath/ipath_rc.c index a504cf67f272..ce6038743c5c 100644 --- a/drivers/infiniband/hw/ipath/ipath_rc.c +++ b/drivers/infiniband/hw/ipath/ipath_rc.c @@ -241,10 +241,7 @@ int ipath_make_rc_req(struct ipath_qp *qp, * original work reque...
6e35aabee125999f4b3c01326f5339fa74a89259
Analyze and fix the following issue in the Linux kernel code: RDMA/cma: Fix device removal race
Problem Details: The race is as follows: A process : cma_process_remove() calls cma_remove_id_dev(), which sets id state to CMA_DEVICE_REMOVAL and calls wait_event(dev_remove). B process : cma_req_handler() had incremented dev_remove, and calls cma_acquire_ib_dev() and on failure calls cma_release...
```diff diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 69bb0892e887..f383a4f50ab0 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -932,6 +932,7 @@ static int cma_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) mutex_unlock(&lock); ...
675a027c3db25a439f6ea744bb0c284f983dbfb9
Analyze and fix the following issue in the Linux kernel code: RDMA/cma: Fix leak of cm_ids in case of failures
Problem Details: cma_connect_ib() and cma_connect_iw() leak cm_id's in failure cases. Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com> Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
```diff diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 1178bd434d1b..69bb0892e887 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -1862,6 +1862,11 @@ static int cma_connect_ib(struct rdma_id_private *id_priv, ret = ib_send_cm_req(id_priv->cm_id.ib,...
11dc10195aed0636d9a60907594b349424b933a7
Analyze and fix the following issue in the Linux kernel code: [WATCHDOG] improve machzwd detection
Problem Details: On a machine with no machzwd, loading the module prints out.. machzwd: MachZ ZF-Logic Watchdog driver initializing. 0xffff machzwd: Watchdog using action = RESET - the 0xffff printk is unnecessary - 0xffff seems to be 'hardware not present' - fix CodingStyle. (This driver could use some more work her...
```diff diff --git a/drivers/char/watchdog/machzwd.c b/drivers/char/watchdog/machzwd.c index ed2b6e1e3cec..276577d08fba 100644 --- a/drivers/char/watchdog/machzwd.c +++ b/drivers/char/watchdog/machzwd.c @@ -426,8 +426,7 @@ static int __init zf_init(void) printk(KERN_INFO PFX ": MachZ ZF-Logic Watchdog driver initiali...
99d2853ac953900962d8191788060e80766eb214
Analyze and fix the following issue in the Linux kernel code: [WATCHDOG] pnx4008_wdt.c - spinlock fixes.
Problem Details: Add io spinlocks to prevent possible race conditions between start and stop operations that are issued from different child processes where the master process opened /dev/watchdog. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
```diff diff --git a/drivers/char/watchdog/pnx4008_wdt.c b/drivers/char/watchdog/pnx4008_wdt.c index 465dfd3ba61a..359168e63c1d 100644 --- a/drivers/char/watchdog/pnx4008_wdt.c +++ b/drivers/char/watchdog/pnx4008_wdt.c @@ -28,6 +28,7 @@ #include <linux/device.h> #include <linux/platform_device.h> #include <linux/clk...
9ec52099e4b8678a60e9f93e41ad87885d64f3e6
Analyze and fix the following issue in the Linux kernel code: [PATCH] replace cad_pid by a struct pid
Problem Details: There are a few places in the kernel where the init task is signaled. The ctrl+alt+del sequence is one them. It kills a task, usually init, using a cached pid (cad_pid). This patch replaces the pid_t by a struct pid to avoid pid wrap around problem. The struct pid is initialized at boot time in ini...
```diff diff --git a/arch/mips/sgi-ip22/ip22-reset.c b/arch/mips/sgi-ip22/ip22-reset.c index 8134220ed600..7a941ecff3bb 100644 --- a/arch/mips/sgi-ip22/ip22-reset.c +++ b/arch/mips/sgi-ip22/ip22-reset.c @@ -123,7 +123,8 @@ static inline void power_button(void) if (machine_state & MACHINE_PANICED) return; - if ((...
1a657f78dcc8ea7c53eaa1f2a45ea2315738c15f
Analyze and fix the following issue in the Linux kernel code: [PATCH] introduce get_task_pid() to fix unsafe get_pid()
Problem Details: proc_pid_make_inode: ei->pid = get_pid(task_pid(task)); I think this is not safe. get_pid() can be preempted after checking "pid != NULL". Then the task exits, does detach_pid(), and RCU frees the pid. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: "Eric W. Biederman" <ebiederm@xmission.com> ...
```diff diff --git a/fs/proc/base.c b/fs/proc/base.c index a317eb2c4442..82da55b5cffe 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -958,7 +958,7 @@ static struct inode *proc_pid_make_inode(struct super_block * sb, struct task_st /* * grab the reference to task. */ - ei->pid = get_pid(task_pid(task)); + e...
821278a75d270048e291fcbec9304439a176ba88
Analyze and fix the following issue in the Linux kernel code: [PATCH] sh64: remove the use of kernel syscalls
Problem Details: sh64 is using system call macros to call some functions from the kernel. The old debug code can simply be removed, since we don't really have that much of a need for it anymore, it was mostly something that was handy during the initial bringup. This also brings us closer to something that looks like ...
```diff diff --git a/arch/sh64/kernel/process.c b/arch/sh64/kernel/process.c index db475b7833fb..525d0ec19b78 100644 --- a/arch/sh64/kernel/process.c +++ b/arch/sh64/kernel/process.c @@ -20,261 +20,16 @@ /* * This file handles the architecture-dependent parts of process handling.. */ - -/* Temporary flags/tests. A...
fe74290d51bc08e9b90ed7c145d74a22cd50b90e
Analyze and fix the following issue in the Linux kernel code: [PATCH] provide kernel_execve on all architectures
Problem Details: This adds the new kernel_execve function on all architectures that were using _syscall3() to implement execve. The implementation uses code from the _syscall3 macros provided in the unistd.h header file. I don't have cross-compilers for any of these architectures, so the patch is untested with the ex...
```diff diff --git a/arch/frv/kernel/Makefile b/arch/frv/kernel/Makefile index 32db3499c461..e8f73ed28b52 100644 --- a/arch/frv/kernel/Makefile +++ b/arch/frv/kernel/Makefile @@ -8,7 +8,7 @@ heads-$(CONFIG_MMU) := head-mmu-fr451.o extra-y:= head.o init_task.o vmlinux.lds obj-y := $(heads-y) entry.o entry-table.o b...
3db03b4afb3ecd66a0399b8ba57742ca953b0ecd
Analyze and fix the following issue in the Linux kernel code: [PATCH] rename the provided execve functions to kernel_execve
Problem Details: Some architectures provide an execve function that does not set errno, but instead returns the result code directly. Rename these to kernel_execve to get the right semantics there. Moreover, there is no reasone for any of these architectures to still provide __KERNEL_SYSCALLS__ or _syscallN macros, s...
```diff diff --git a/arch/alpha/kernel/alpha_ksyms.c b/arch/alpha/kernel/alpha_ksyms.c index f042cc42b00f..dbe327d32b6f 100644 --- a/arch/alpha/kernel/alpha_ksyms.c +++ b/arch/alpha/kernel/alpha_ksyms.c @@ -36,7 +36,6 @@ #include <asm/cacheflush.h> #include <asm/vga.h> -#define __KERNEL_SYSCALLS__ #include <asm/un...
5d124e99c2fee1c8f3020ecb0dff8d5617ee7991
Analyze and fix the following issue in the Linux kernel code: [PATCH] nsproxy cloning error path fix
Problem Details: This patch fixes copy_namespaces()'s error path. when new nsproxy (new_ns) is created pointers to namespaces (ipc, uts) are copied from the old nsproxy. Later in copy_utsname, copy_ipcs, etc. according namespaces are get-ed. On error path needed namespaces are put-ed, so there's no need to put new n...
```diff diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index 8d6c852dc51e..6ebdb82a0ce4 100644 --- a/kernel/nsproxy.c +++ b/kernel/nsproxy.c @@ -123,7 +123,7 @@ out_uts: put_namespace(new_ns->namespace); out_ns: tsk->nsproxy = old_ns; - put_nsproxy(new_ns); + kfree(new_ns); goto out; } ```
25b21cb2f6d69b0475b134e0a3e8e269137270fa
Analyze and fix the following issue in the Linux kernel code: [PATCH] IPC namespace core
Problem Details: This patch set allows to unshare IPCs and have a private set of IPC objects (sem, shm, msg) inside namespace. Basically, it is another building block of containers functionality. This patch implements core IPC namespace changes: - ipc_namespace structure - new config option CONFIG_IPC_NS - adds CLONE...
```diff diff --git a/include/linux/init_task.h b/include/linux/init_task.h index e08531ec32f0..ceecf69dfa39 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -74,6 +74,7 @@ extern struct nsproxy init_nsproxy; .count = ATOMIC_INIT(1), \ .nslock = SPIN_LOCK_UNLOCKED, \ .uts_ns = &in...
071df104f808b8195c40643dcb4d060681742e29
Analyze and fix the following issue in the Linux kernel code: [PATCH] namespaces: utsname: implement CLONE_NEWUTS flag
Problem Details: Implement a CLONE_NEWUTS flag, and use it at clone and sys_unshare. [clg@fr.ibm.com: IPC unshare fix] [bunk@stusta.de: cleanup] Signed-off-by: Serge Hallyn <serue@us.ibm.com> Cc: Kirill Korotaev <dev@openvz.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Herbert Poetzl <herbert@13thfloor.at> ...
```diff diff --git a/include/linux/sched.h b/include/linux/sched.h index 46d6f5be72f2..a973e7012315 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -24,6 +24,7 @@ #define CLONE_UNTRACED 0x00800000 /* set if the tracing process can't force CLONE_PTRACE on this clone */ #define CLONE_CHILD_SETTID 0x0...
8218c74c02a7bdb5db2e40a2100534bdeb83475b
Analyze and fix the following issue in the Linux kernel code: [PATCH] namespaces: utsname: sysctl
Problem Details: Sysctl uts patch. This will need to be done another way, but since sysctl itself needs to be container aware, 'the right thing' is a separate patchset. [akpm@osdl.org: ia64 build fix] [sam.vilain@catalyst.net.nz: cleanup] [sam.vilain@catalyst.net.nz: add proc_do_utsns_string] Signed-off-by: Serge E. ...
```diff diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 8f3f00d5ee52..476ac2522f18 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -139,7 +139,7 @@ static int parse_table(int __user *, int, void __user *, size_t __user *, void __user *, size_t, ctl_table *, void **); #endif -static int proc_doutsstring...
4865ecf1315b450ab3317a745a6678c04d311e40
Analyze and fix the following issue in the Linux kernel code: [PATCH] namespaces: utsname: implement utsname namespaces
Problem Details: This patch defines the uts namespace and some manipulators. Adds the uts namespace to task_struct, and initializes a system-wide init namespace. It leaves a #define for system_utsname so sysctl will compile. This define will be removed in a separate patch. [akpm@osdl.org: build fix, cleanup] Signed-o...
```diff diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 4865348ca8bd..e08531ec32f0 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -4,6 +4,7 @@ #include <linux/file.h> #include <linux/rcupdate.h> #include <linux/irqflags.h> +#include <linux/utsname.h> #include <lin...
96b644bdec977b97a45133e5b4466ba47a7a5e65
Analyze and fix the following issue in the Linux kernel code: [PATCH] namespaces: utsname: use init_utsname when appropriate
Problem Details: In some places, particularly drivers and __init code, the init utsns is the appropriate one to use. This patch replaces those with a the init_utsname helper. Changes: Removed several uses of init_utsname(). Hope I picked all the right ones in net/ipv4/ipconfig.c. These are now changed to utsname(...
```diff diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 0a722e77c143..6bbd93dd186a 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -348,7 +348,7 @@ static void __init setup_processor(void) cpu_name, processor_id, (int)processor_id & 15, proc_arch[cpu_architec...
ab516013ad9ca47f1d3a936fa81303bfbf734d52
Analyze and fix the following issue in the Linux kernel code: [PATCH] namespaces: add nsproxy
Problem Details: This patch adds a nsproxy structure to the task struct. Later patches will move the fs namespace pointer into this structure, and introduce a new utsname namespace into the nsproxy. The vserver and openvz functionality, then, would be implemented in large part by virtualizing/isolating more and more ...
```diff diff --git a/arch/alpha/kernel/init_task.c b/arch/alpha/kernel/init_task.c index 835d09a7b332..83d09021ed97 100644 --- a/arch/alpha/kernel/init_task.c +++ b/arch/alpha/kernel/init_task.c @@ -5,6 +5,7 @@ #include <linux/init_task.h> #include <linux/fs.h> #include <linux/mqueue.h> +#include <linux/nsproxy.h> ...
12fd352038c037ba3a7071a2ca8597c55114abc3
Analyze and fix the following issue in the Linux kernel code: [PATCH] nfsd: lockdep annotation
Problem Details: while doing a kernel make modules_install install over an NFS mount. ============================================= [ INFO: possible recursive locking detected ] --------------------------------------------- nfsd/9550 is trying to acquire lock: (&inode->i_mutex){--..}, at: [<c034c845>] mutex...
```diff diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index c9e3b5a8fe07..443ebc52e382 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -1114,7 +1114,7 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, */ if (!resfhp->fh_dentry) { /* called from nfsd_proc_mkdir, or possibly nfsd3_proc_create */ - fh_loc...
6fb2b47fa16c81317ec282248e6cff521cca31c2
Analyze and fix the following issue in the Linux kernel code: [PATCH] knfsd: Drop 'serv' option to svc_recv and svc_process
Problem Details: It isn't needed as it is available in rqstp->rq_server, and dropping it allows some local vars to be dropped. [akpm@osdl.org: build fix] Cc: "J. Bruce Fields" <bfields@fieldses.org> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <to...
```diff diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 8d19de6a14dc..f0791cff45ac 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -98,7 +98,6 @@ static inline void clear_grace_period(void) static void lockd(struct svc_rqst *rqstp) { - struct svc_serv *serv = rqstp->rq_server; int err = 0; unsigned long ...
80212d59e32a8a8e030c2ddc5861d8ff70542c56
Analyze and fix the following issue in the Linux kernel code: [PATCH] knfsd: define new nfsdfs file: portlist - contains list of ports
Problem Details: This file will list all ports that nfsd has open. Default when TCP enabled will be ipv4 udp 0.0.0.0 2049 ipv4 tcp 0.0.0.0 2049 Later, the list of ports will be settable. 'portlist' chosen rather than 'ports', to avoid unnecessary confusion with non-mainline patches which created 'ports' with di...
```diff diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index d6881774ea57..d4041a05bc19 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -23,10 +23,12 @@ #include <linux/pagemap.h> #include <linux/init.h> #include <linux/string.h> +#include <linux/smp_lock.h> #include <linux/nfs.h> #include <linux/nfsd_...
bc591ccff27e6a85d3a0d6fcb16cfadcc45267a8
Analyze and fix the following issue in the Linux kernel code: [PATCH] knfsd: add a callback for when last rpc thread finishes
Problem Details: nfsd has some cleanup that it wants to do when the last thread exits, and there will shortly be some more. So collect this all into one place and define a callback for an rpc service to call when the service is about to be destroyed. [akpm@osdl.org: cleanups, build fix] Signed-off-by: Neil Brown <nei...
```diff diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 9a991b52c647..13feba45030e 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -236,7 +236,7 @@ lockd_up(void) "lockd_up: no pid, %d users??\n", nlmsvc_users); error = -ENOMEM; - serv = svc_create(&nlmsvc_program, LOCKD_BUFSIZE); + serv = svc_create(&nl...
0f532f3861d2c4e5aa7dcd33fb18e9975eb28457
Analyze and fix the following issue in the Linux kernel code: [PATCH] cpumask: add highest_possible_node_id
Problem Details: cpumask: add highest_possible_node_id(), analogous to highest_possible_processor_id(). [pj@sgi.com: fix typo] Signed-off-by: Greg Banks <gnb@melbourne.sgi.com> Signed-off-by: Paul Jackson <pj@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
```diff diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h index 1a9ef3e627d1..5dce5c21822c 100644 --- a/include/linux/nodemask.h +++ b/include/linux/nodemask.h @@ -352,6 +352,7 @@ extern nodemask_t node_possible_map; #define node_possible(node) node_isset((node), node_possible_map) #define first_online...
ca8af486765852302931bb69075871d5564e1e5b
Analyze and fix the following issue in the Linux kernel code: [PATCH] isdn: work around excessive udelay()
Problem Details: As reported in http://bugzilla.kernel.org/show_bug.cgi?id=6970, ISDN can issue excessively-long udelays, which triggers a build-time error on ARM. This is very sucky of ISDN, but I doubt if anyone is going to suddenly fix it. So change the macro to do the microsecond counting itself. Cc: <tch@wpkg.or...
```diff diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h index 75920aa0a3c5..2f9d5118ceaf 100644 --- a/drivers/isdn/hisax/hisax.h +++ b/drivers/isdn/hisax/hisax.h @@ -1316,7 +1316,18 @@ void dlogframe(struct IsdnCardState *cs, struct sk_buff *skb, int dir); void iecpy(u_char * dest, u_char * iestar...
fd0fbcc27fd72a11dacc3f1a1681ee4dfd256a0b
Analyze and fix the following issue in the Linux kernel code: [PATCH] isdn4linux: Gigaset driver: fix __must_check warning
Problem Details: This patch to the Siemens Gigaset driver fixes the compile warning "ignoring return value of 'class_device_create_file', declared with attribute warn_unused_result" appearing with CONFIG_ENABLE_MUST_CHECK=y in release 2.6.18-rc1-mm1. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Acked-by: Hansjoerg L...
```diff diff --git a/drivers/isdn/gigaset/proc.c b/drivers/isdn/gigaset/proc.c index 9ae3a7f3e7b3..9ad840e95dbe 100644 --- a/drivers/isdn/gigaset/proc.c +++ b/drivers/isdn/gigaset/proc.c @@ -83,5 +83,6 @@ void gigaset_init_dev_sysfs(struct cardstate *cs) return; gig_dbg(DEBUG_INIT, "setting up sysfs"); - class_d...
8bb31b9d5340ed3dfef45d322f59fcf18a0d598b
Analyze and fix the following issue in the Linux kernel code: [PATCH] Linux Kernel Dump Test Module
Problem Details: A simple module to test Linux Kernel Dump mechanism. This module uses jprobes to install/activate pre-defined crash points. At different crash points, various types of crashing scenarios are created like a BUG(), panic(), exception, recursive loop and stack overflow. The user can activate a crash po...
```diff diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index 19c2b85249c3..c1bf1fb04c5c 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -3,5 +3,6 @@ # obj- := misc.o # Dummy rule to force built-in.o to be made -obj-$(CONFIG_IBM_ASM) += ibmasm/ +obj-$(CONFIG_IBM_ASM) += ibmasm/ obj-$(...