id
stringlengths
40
40
instruction
stringlengths
68
308
input
stringlengths
17
33.4k
output
stringlengths
100
30k
9f66036b4f95f5e830d68a3ce90aeece0e0c4bf3
Analyze and fix the following issue in the Linux kernel code: hwmon/w83627ehf: Be quiet when no chip is found
Problem Details: This fixes bug #8593: http://bugzilla.kernel.org/show_bug.cgi?id=8593 Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
```diff diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index d2a26135b313..c51ae2e17758 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c @@ -1445,8 +1445,9 @@ static int __init w83627ehf_find(int sioaddr, unsigned short *addr, sio_name = sio_name_W83627DHG; break; defau...
6b3e46458049fe556c2346a347c4540e532db288
Analyze and fix the following issue in the Linux kernel code: hwmon/w83627ehf: Fix timing issues
Problem Details: * I have experimental evidence that the W83627EHG needs more than 1 second to refresh all the measured values. Increase the caching time to 1.5 second. * When changing a fan clock divider, the corresponding fan speed measurement register is no longer valid, until the next time the chip will refresh it....
```diff diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index e615b8378fc3..0c2d929cf573 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c @@ -421,7 +421,7 @@ static struct w83627ehf_data *w83627ehf_update_device(struct device *dev) mutex_lock(&data->update_lock); - if (tim...
158ce07564b68d4215b9560213a089d6f7c5a4ea
Analyze and fix the following issue in the Linux kernel code: hwmon/w83627ehf: Preserve speed reading when changing fan min
Problem Details: The w83627ehf driver changes the fan clock divider automatically when a new min fan speed is set. It is supposed to preserve the fan speed reading while doing so, bug doesn't really. Fix it. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
```diff diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index 30a76404f0af..f4d850c71585 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c @@ -716,10 +716,15 @@ store_fan_min(struct device *dev, struct device_attribute *attr, /* Write both the fan clock divider (if it changed) ...
e432dc811bfb6b3d3ad618d99bd8d58132fec316
Analyze and fix the following issue in the Linux kernel code: hwmon: fix detection of abituguru volt inputs
Problem Details: This patch fixes the detection of volt inputs with a reading of more then 240 units. Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
```diff diff --git a/drivers/hwmon/abituguru.c b/drivers/hwmon/abituguru.c index 11a40da13535..0770688f79b6 100644 --- a/drivers/hwmon/abituguru.c +++ b/drivers/hwmon/abituguru.c @@ -418,7 +418,7 @@ static int __devinit abituguru_detect_bank1_sensor_type(struct abituguru_data *data, u8 sensor_addr) { - u8 val...
04a6217df28e3004ba4e76eb0a356a30f72c564f
Analyze and fix the following issue in the Linux kernel code: hwmon: Fix a potential race condition on unload
Problem Details: Fix a potential race condition when some hardware monitoring platform drivers are being unloaded. I believe that the driver data pointer shouldn't be cleared before all the sysfs files are removed, otherwise a sysfs callback might attempt to dereference a NULL pointer. I'm not sure exactly what the dri...
```diff diff --git a/drivers/hwmon/abituguru.c b/drivers/hwmon/abituguru.c index bede4d990ea6..11a40da13535 100644 --- a/drivers/hwmon/abituguru.c +++ b/drivers/hwmon/abituguru.c @@ -1287,6 +1287,7 @@ abituguru_probe_error: for (i = 0; i < ARRAY_SIZE(abituguru_sysfs_attr); i++) device_remove_file(&pdev->dev, &...
58fe0809cc02d51b7aca05ee858c8bbb0af9e0b6
Analyze and fix the following issue in the Linux kernel code: hwmon/via686a: Temperature interrupt configuration fix
Problem Details: Fix the writing of the temperature interrupt configuration. The old code was working only by accident. Signed-off-by: Jean Delvare <khali@linux-fr.org>
```diff diff --git a/drivers/hwmon/via686a.c b/drivers/hwmon/via686a.c index 9a440c8cc520..a25b0542649c 100644 --- a/drivers/hwmon/via686a.c +++ b/drivers/hwmon/via686a.c @@ -740,9 +740,10 @@ static void via686a_init_client(struct i2c_client *client) via686a_write_value(client, VIA686A_REG_CONFIG, (reg|0x01)&0x7F); ...
0966415d7267c860b88fe96f7e83cfd687efe0bd
Analyze and fix the following issue in the Linux kernel code: hwmon/lm90: Spelling fix: explicitly
Problem Details: Signed-off-by: Jean Delvare <khali@linux-fr.org>
```diff diff --git a/Documentation/hwmon/lm90 b/Documentation/hwmon/lm90 index 438cb24cee5b..ba3e94b7117b 100644 --- a/Documentation/hwmon/lm90 +++ b/Documentation/hwmon/lm90 @@ -141,7 +141,7 @@ SMBus Read Byte, and PEC will work properly. Additionally, the ADM1032 doesn't support SMBus Send Byte with PEC. Instead, i...
41e9d344bf52c57ec16648d08618b61d3f1d4bdc
Analyze and fix the following issue in the Linux kernel code: IDE: fix termination of non-fs requests
Problem Details: ide-disk calls ide_end_request(drive, 0, 0); to finish an unknown request, but this doesn't work so well for non-fs requests, since ide_end_request() internally looks at ->hard_cur_sectors to see how much data to end. Only file system requests store a transfer value in there, pc requests fill...
```diff diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index c5b5011da56e..f9de79844418 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -55,7 +55,7 @@ #include <asm/bitops.h> static int __ide_end_request(ide_drive_t *drive, struct request *rq, - int uptodate, int nr_sectors) + ...
275afcac9953ece0828972edeab9684cfe1a5ef3
Analyze and fix the following issue in the Linux kernel code: afs build fix
Problem Details: Bruce and David's patches clashed. fs/afs/flock.c: In function 'afs_do_getlk': fs/afs/flock.c:459: error: void value not ignored as it ought to be Cc: "J. Bruce Fields" <bfields@fieldses.org> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed...
```diff diff --git a/fs/afs/flock.c b/fs/afs/flock.c index 8f07f8d1bfa9..4f77f3caee97 100644 --- a/fs/afs/flock.c +++ b/fs/afs/flock.c @@ -456,7 +456,8 @@ static int afs_do_getlk(struct file *file, struct file_lock *fl) /* check local lock records first */ ret = 0; - if (posix_test_lock(file, fl) == 0) { + posix_...
b2a4ac0c2860b27670bce99e8c9c281bf431c272
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix edac_device sysfs corner case bug
Problem Details: Some simple fixes to properly reference counter values from the block attribute level of edac_device objects. Properly sequencing the array pointer was added, resulting in correct identification of block level attributes from their base class functions. Added more verbose debug statement for event tr...
```diff diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index 4e31ac438760..4e6bad15c4ba 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -485,7 +485,16 @@ struct edac_dev_sysfs_attribute { }; /* edac_dev_sysfs_block_attribute structure + * * used in leaf 'block' nodes for ...
420390f06a5afd3e130b960ef99bc4bd4286e535
Analyze and fix the following issue in the Linux kernel code: drivers/edac: new i82975x driver
Problem Details: New EDAC driver for the i82975x memory controller chipset Used on ASUS motherboards [akpm@linux-foundation.org: fix multiple coding-style bloopers] Signed-off-by: <arvind@acarlab.com> Signed-off-by: Ranganathan Desikan <rdesikan@jetzbroadband.com> Signed-off-by: Doug Thompson <dougthompson@xmission.co...
```diff diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig index 43570d41f27c..1724c41d2414 100644 --- a/drivers/edac/Kconfig +++ b/drivers/edac/Kconfig @@ -88,6 +88,13 @@ config EDAC_I82875P Support for error detection and correction on the Intel DP82785P and E7210 server chipsets. +config EDAC_I82975X...
bf52fa4a26567bfbf5b1d30f84cf0226e61d26cd
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix workq reset deadlock
Problem Details: Fix mutex locking deadlock on the device controller linked list. Was calling a lock then a function that could call the same lock. Moved the cancel workq function to outside the lock Added some short circuit logic in the workq code Added comments of description Code tidying Signed-off-by: Doug Th...
```diff diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index 173f4ba0f7c8..7e3723768aca 100644 --- a/drivers/edac/edac_device.c +++ b/drivers/edac/edac_device.c @@ -32,7 +32,9 @@ #include "edac_core.h" #include "edac_module.h" -/* lock to memory controller's control array 'edac_device_list' */...
1c3631ff1f805cb72644fcde02b7c58950f21cd5
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix edac_device sysfs completion code
Problem Details: With feedback, this patch corrects operation of the kobject release operation on kobjects, attributes and controls for the edac_device. Cc: Alan Cox alan@lxorguk.ukuu.org.uk Signed-off-by: Doug Thompson <dougthompson@xmission.com> Acked-by: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@l...
```diff diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index bd7f00cf2443..4e31ac438760 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -337,6 +337,9 @@ struct mcidev_sysfs_attribute { */ struct mem_ctl_info { struct list_head link; /* for global list of mem_ctl_info struc...
8096cfafbb7ad3cb1a286ae7e8086167f4ebb4b6
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix edac_mc sysfs completion code
Problem Details: This patch refactors the 'releasing' of kobjects for the edac_mc type of device. The correct pattern of kobject release is followed. As internal kobjs are allocated they bump a ref count on the top level kobj. It in turn has a module ref count on the edac_core module. When internal kobjects are rele...
```diff diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index 2c399c52193e..bd7f00cf2443 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -317,9 +317,8 @@ struct csrow_info { struct mem_ctl_info *mci; /* the parent */ struct kobject kobj; /* sysfs kobject for this csrow */ ...
d45e7823baf655ced91c7987fb4ba9aae990ad6d
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix edac_device init apis
Problem Details: Refactoring of sysfs code necessitated the refactoring of the edac_device_alloc() and edac_device_add_device() apis, of moving the index value to the alloc() function. This patch alters the in tree drivers to utilize this new api signature. Having the index value performed later created a chicken-and...
```diff diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index 63691cf3a1d6..2c399c52193e 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -634,7 +634,8 @@ extern struct edac_device_ctl_info *edac_device_alloc_ctl_info( char *edac_block_name, unsigned nr_blocks, unsigned off...
b8f6f9755248026f21282e25cac49a1af698056c
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix edac_mc init apis
Problem Details: Refactoring of sysfs code necessitated the refactoring of the edac_mc_alloc() and edac_mc_add_mc() apis, of moving the index value to the alloc() function. This patch alters the in tree drivers to utilize this new api signature. Having the index value performed later created a chicken-and-the-egg issu...
```diff diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c index 1c1e02e59585..f22075410591 100644 --- a/drivers/edac/amd76x_edac.c +++ b/drivers/edac/amd76x_edac.c @@ -238,7 +238,7 @@ static int amd76x_probe1(struct pci_dev *pdev, int dev_idx) debugf0("%s()\n", __func__); pci_read_config_dword(pd...
fd309a9d8e63e9176759d00630b65d772ae06e0c
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix leaf sysfs attribute
Problem Details: This patch fixes and enhances the driver level set of sysfs attributes that can be added to the 'block' level of an edac_device type of driver. There is a controller information structure, which contains one or more instances of device. Each instance will have one or more blocks of device specific co...
```diff diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index e49dce069d1f..fca1990945a9 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -468,32 +468,34 @@ struct edac_device_counter { u32 ce_count; }; -/* - * An array of these is passed to the alloc() function - * to speci...
7297c2617f6465d7862e156d4db5d812744280f1
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix e752x reversed csrows
Problem Details: Found a 'reversal' decoding bug in the driver. This patch fixes that mapping to correctly display the CSROW entries in their proper order. Users will be enable to correctly identifiy the failing DIMM with this fix. [akpm@linux-foundation.org: unneeded (and undesirable) cast of void*] Cc: Alan Cox al...
```diff diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c index a041218370f9..f5168a593e93 100644 --- a/drivers/edac/e752x_edac.c +++ b/drivers/edac/e752x_edac.c @@ -284,9 +284,6 @@ static void do_process_ce(struct mem_ctl_info *mci, u16 error_one, /* 0 = channel A, 1 = channel B */ channel = !(err...
0ca84761faeb9d49301d45b39859411c7a124690
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix edac_device semaphore to mutex
Problem Details: A previous patch changed the edac_mc src file from semaphore usage to mutex This patch changes the edac_device src file as well, from semaphore use to mutex operation. Use a mutex primitive for mutex operations, as it does not require a semaphore Cc: Alan Cox alan@lxorguk.ukuu.org.uk Signed-off-by: D...
```diff diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index 1d2eb20304f6..b53e8d51d9a5 100644 --- a/drivers/edac/edac_device.c +++ b/drivers/edac/edac_device.c @@ -33,7 +33,7 @@ #include "edac_module.h" /* lock to memory controller's control array 'edac_device_list' */ -static DECLARE_MUTEX(d...
1c52152b3008b7bdcc3b94d0be4d0b814dce1530
Analyze and fix the following issue in the Linux kernel code: drivers/edac: fix ignored return i82875p
Problem Details: Compiling this module gave a warning that the return value of 'pci_bus_add_device()' was not checked. This patch adds that check and an output message Signed-off-by: Douglas Thompson <dougthompson@xmission.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundatio...
```diff diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c index 089ec397ca6a..ce5f0053cdd3 100644 --- a/drivers/edac/i82875p_edac.c +++ b/drivers/edac/i82875p_edac.c @@ -270,6 +270,7 @@ static int i82875p_setup_overfl_dev(struct pci_dev *pdev, { struct pci_dev *dev; void __iomem *window; + int...
654ede200fe028373852bbca387ab4834ddb7228
Analyze and fix the following issue in the Linux kernel code: drivers/edac: mod race fix i82875p
Problem Details: If ERRSTS indicates that there's no error then we don't need to bother reading the other registers. In addition to making the common case faster, this actually fixes a small race where we don't see an error but we clear the error bits anyway, potentially wiping away info on an error that happened in t...
```diff diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c index c9aed70fec8e..089ec397ca6a 100644 --- a/drivers/edac/i82875p_edac.c +++ b/drivers/edac/i82875p_edac.c @@ -198,27 +198,28 @@ static void i82875p_get_error_info(struct mem_ctl_info *mci, * overwritten by UE. */ pci_read_config_wo...
28f96eeafc89643d411d54c258788a8573576127
Analyze and fix the following issue in the Linux kernel code: drivers/edac-new-i82443bxgz-mc-driver: mark as broken
Problem Details: It will claim the PCI devices from under intel_agp.ko's feet. Greg is brewing some fix for that. Cc: Douglas Thompson <dougthompson@xmission.com> Cc: Tim Small <tim@buttersideup.com> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <t...
```diff diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig index b56e4782f317..e8c4a2bedaa1 100644 --- a/drivers/edac/Kconfig +++ b/drivers/edac/Kconfig @@ -76,6 +76,7 @@ config EDAC_E752X config EDAC_I82443BXGX tristate "Intel 82443BX/GX (440BX/GX)" depends on EDAC_MM_EDAC && PCI && X86_32 + depends on BROK...
522a94bd1e18a2acf9428f48db585a2fc816559e
Analyze and fix the following issue in the Linux kernel code: drivers/edac: core.h fix scrubdefs
Problem Details: Patch to fix some scrubbing #defines in the edac_core.h file Signed-off-by: Douglas Thompson <dougthompson@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
```diff diff --git a/drivers/edac/edac_core.h b/drivers/edac/edac_core.h index a3e4b97fe4fe..968f48399e00 100644 --- a/drivers/edac/edac_core.h +++ b/drivers/edac/edac_core.h @@ -194,12 +194,12 @@ enum scrub_type { }; #define SCRUB_FLAG_SW_PROG BIT(SCRUB_SW_PROG) -#define SCRUB_FLAG_SW_SRC BIT(SCRUB_SW_SRC_CORR) -#...
d503e2fa5aecef99675c5a81b61321a5407bf61f
Analyze and fix the following issue in the Linux kernel code: lguest: the net driver
Problem Details: Lguest net driver A simple net driver for lguest. [akpm@linux-foundation.org: include fix] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Andi Kleen <ak@suse.de> Cc: Jeff Garzik <jeff@garzik.org> Acked-by: James Morris <jmorris@namei.org> Signed-off-by: Andrew Morton <akpm@linux-foundation....
```diff diff --git a/drivers/net/Makefile b/drivers/net/Makefile index aaaa0a04bb46..336af0635df8 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -177,6 +177,7 @@ obj-$(CONFIG_ZORRO8390) += zorro8390.o obj-$(CONFIG_HPLANCE) += hplance.o 7990.o obj-$(CONFIG_MVME147_NET) += mvme147.o 7990.o obj-$(CONFI...
a280df32db291f41b3922ac218674be526af5b9b
Analyze and fix the following issue in the Linux kernel code: nfsd: fix possible read-ahead cache and export table corruption
Problem Details: The value of nperbucket calculated here is too small--we should be rounding up instead of down--with the result that the index j in the following loop can overflow the raparm_hash array. At least in my case, the next thing in memory turns out to be export_table, so the symptoms I see are crashes cause...
```diff diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index e90f4a8a1d01..b8da5ddb3a0a 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -1916,7 +1916,7 @@ nfsd_racache_init(int cache_size) raparm_hash[i].pb_head = NULL; spin_lock_init(&raparm_hash[i].pb_lock); } - nperbucket = cache_size >> RAPARM_HASH_BITS; + np...
71120f183bff04ba4f7ba3cc554202061912d548
Analyze and fix the following issue in the Linux kernel code: timekeeping: fixup shadow variable argument
Problem Details: clocksource_adjust() has a clock argument, which shadows the file global clock variable. Fix this up. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: john stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-founda...
```diff diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 728cedfd3cbd..89698776613e 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -401,7 +401,7 @@ static __always_inline int clocksource_bigadjust(s64 error, s64 *interval, * this is optimized for the most common adju...
7ed5cb2b73d0c4165c0504c95454fade0c0bf3d9
Analyze and fix the following issue in the Linux kernel code: Remove nid_lock from alloc_fresh_huge_page
Problem Details: The fix to that race in alloc_fresh_huge_page() which could give an illegal node ID did not need nid_lock at all: the fix was to replace static int nid by static int prev_nid and do the work on local int nid. nid_lock did make sure that racers strictly roundrobin the nodes, but that's not something we...
```diff diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 15fc7b000772..2d7611cf276a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -104,15 +104,19 @@ static int alloc_fresh_huge_page(void) { static int prev_nid; struct page *page; - static DEFINE_SPINLOCK(nid_lock); int nid; - spin_lock(&nid_lock); + /* + * Co...
7ac674f52778b95450509357435320be1d795248
Analyze and fix the following issue in the Linux kernel code: vmalloc_32 should use GFP_KERNEL
Problem Details: I've noticed lots of failures of vmalloc_32 on machines where it shouldn't have failed unless it was doing an atomic operation. Looking closely, I noticed that: #if defined(CONFIG_64BIT) && defined(CONFIG_ZONE_DMA32) #define GFP_VMALLOC32 GFP_DMA32 #elif defined(CONFIG_64BIT) && defined(CONFIG_ZONE_D...
```diff diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 3130c343088f..213d5e5079ff 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -583,9 +583,9 @@ void *vmalloc_exec(unsigned long size) } #if defined(CONFIG_64BIT) && defined(CONFIG_ZONE_DMA32) -#define GFP_VMALLOC32 GFP_DMA32 +#define GFP_VMALLOC32 GFP_DMA32 | GFP_...
ea02e3dde3509ffa7fda7f8de9c8a366e03f7bbd
Analyze and fix the following issue in the Linux kernel code: FRV: work around a possible compiler bug
Problem Details: Work around a possible bug in the FRV compiler. What appears to be happening is that gcc resolves the __builtin_constant_p() in kmalloc() to true, but then fails to reduce the therefore constant conditions in the if-statements it guards to constant results. When compiling with -O2 or -Os, one single ...
```diff diff --git a/arch/frv/Makefile b/arch/frv/Makefile index 038e3a8457e0..9bf7345c5cc9 100644 --- a/arch/frv/Makefile +++ b/arch/frv/Makefile @@ -88,7 +88,7 @@ ASFLAGS += -mno-fdpic # make sure the .S files get compiled with debug info # and disable optimisations that are unhelpful whilst debugging ifdef CONFI...
3abf7afd406866a84276d3ed04f4edf6070c9cb5
Analyze and fix the following issue in the Linux kernel code: dequeue_huge_page() warning fix
Problem Details: mm/hugetlb.c: In function `dequeue_huge_page': mm/hugetlb.c:72: warning: 'nid' might be used uninitialized in this function Cc: Christoph Lameter <clameter@sgi.com> Cc: Adam Litke <agl@us.ibm.com> Cc: David Gibson <hermes@gibson.dropbear.id.au> Cc: William Lee Irwin III <wli@holomorphy.com> Signed-off...
```diff diff --git a/mm/hugetlb.c b/mm/hugetlb.c index c4a573b857bd..15fc7b000772 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -78,16 +78,13 @@ static struct page *dequeue_huge_page(struct vm_area_struct *vma, for (z = zonelist->zones; *z; z++) { nid = zone_to_nid(*z); if (cpuset_zone_allowed_softwall(*z, ht...
3b5ad0797c0e4049001f961a8b58f1d0ce532072
Analyze and fix the following issue in the Linux kernel code: stacktrace: fix header file for !CONFIG_STACKTRACE
Problem Details: The print_stack_trace macro in stacktrace.h has a wrong number of arguments, fix it. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-...
```diff diff --git a/include/linux/stacktrace.h b/include/linux/stacktrace.h index 1d2b084c0185..e7fa657d0c49 100644 --- a/include/linux/stacktrace.h +++ b/include/linux/stacktrace.h @@ -13,7 +13,7 @@ extern void save_stack_trace(struct stack_trace *trace); extern void print_stack_trace(struct stack_trace *trace, int ...
4b32d0a4e9ec07808a5c406a416c6576c986b047
Analyze and fix the following issue in the Linux kernel code: lockdep: various fixes
Problem Details: - update the copyright notices - use the default hash function - fix a thinko in a BUILD_BUG_ON - add a WARN_ON to spot inconsitent naming - fix a termination issue in /proc/lock_stat [akpm@linux-foundation.org: cleanups] Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Ingo Molnar...
```diff diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 8f946f614f8e..3d3386b88b6a 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -1,7 +1,8 @@ /* * Runtime locking correctness validator * - * Copyright (C) 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> + * Copyrigh...
c46261de0d98372112d8edf16f74ce418a268d46
Analyze and fix the following issue in the Linux kernel code: lockstat: human readability tweaks
Problem Details: Present all this fancy new lock statistics information: *warning, _wide_ output ahead* (output edited for purpose of brevity) # cat /proc/lock_stat lock_stat version 0.1 ---------------------------------------------------------------------------------------------------------------------------------...
```diff diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 70ca4db28aff..a8dc99d9fef7 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c @@ -149,6 +149,50 @@ static void lock_time_inc(struct lock_time *lt, s64 time) lt->nr++; } +static inline void lock_time_add(struct lock_time *src, struct lock_time *dst) +...
f20786ff4da51e56b1956acf30be2552be266746
Analyze and fix the following issue in the Linux kernel code: lockstat: core infrastructure
Problem Details: Introduce the core lock statistics code. Lock statistics provides lock wait-time and hold-time (as well as the count of corresponding contention and acquisitions events). Also, the first few call-sites that encounter contention are tracked. Lock wait-time is the time spent waiting on the lock. This p...
```diff diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 14c937d345cb..8f946f614f8e 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -9,6 +9,7 @@ #define __LINUX_LOCKDEP_H struct task_struct; +struct lockdep_map; #ifdef CONFIG_LOCKDEP @@ -114,8 +115,32 @@ struct lock_cl...
21f8ca3bf6198bd21e3c4cc820af2ccf753a6ec8
Analyze and fix the following issue in the Linux kernel code: fix raw_spinlock_t vs lockdep
Problem Details: Use the lockdep infrastructure to track lock contention and other lock statistics. It tracks lock contention events, and the first four unique call-sites that encountered contention. It also measures lock wait-time and hold-time in nanoseconds. The minimum and maximum times are tracked, as well as a ...
```diff diff --git a/include/linux/spinlock_types.h b/include/linux/spinlock_types.h index 210549ba4ef4..f6a3a951b79e 100644 --- a/include/linux/spinlock_types.h +++ b/include/linux/spinlock_types.h @@ -9,14 +9,14 @@ * Released under the General Public License (GPL). */ -#include <linux/lockdep.h> - #if defined(...
d728900cd5502927158db747c653007cf72e2e49
Analyze and fix the following issue in the Linux kernel code: coda: fix nlink updates for directories
Problem Details: The Coda client sets the directory link count to 1 when it isn't sure how many subdirectories we have. In this case we shouldn't change the link count in the kernel when a subdirectory is created or removed. Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu> Signed-off-by: Andrew Morton <akpm@linux-foun...
```diff diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 898a86dde8f5..56a3b76b91ca 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c @@ -173,12 +173,11 @@ int coda_permission(struct inode *inode, int mask, struct nameidata *nd) out: unlock_kernel(); - - return error; + return error; } -static inline vo...
b38bd33a6bf5095736620ca8e85fe61820c2d312
Analyze and fix the following issue in the Linux kernel code: fix ext4/JBD2 build warnings
Problem Details: Looking at the current linus-git tree jbd_debug() define in include/linux/jbd2.h extern u8 journal_enable_debug; #define jbd_debug(n, f, a...) \ do { \ if ((n) <= journal_enabl...
```diff diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index de26c25d6a18..a4848e04a5ed 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2903,7 +2903,7 @@ int ext4_write_inode(struct inode *inode, int wait) return 0; if (ext4_journal_current_handle()) { - jbd_debug(0, "called recursively, non-PF_MEMALLOC!...
f0a594c1c74fedbd838402e7372030311be8cc6e
Analyze and fix the following issue in the Linux kernel code: update checkpatch.pl to version 0.08
Problem Details: This version brings a number of new checks, and a number of bug fixes. Of note: - warnings for multiple assignments per line - warnings for multiple declarations per line - checks for single statement blocks with braces This patch includes an update for feature-removal-schedule.txt to better t...
```diff diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index cff63befeb9a..a9941544ed8e 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt @@ -51,6 +51,7 @@ Who: David Miller <davem@davemloft.net> What: Video4Li...
86fd6dfc0990d81123dca19541554426c9e9de3e
Analyze and fix the following issue in the Linux kernel code: docbook: don't reference file without kernel-doc
Problem Details: Remove include/linux/rmap.h from kernel-api.tmpl since it no longer contains kernel-doc. Fixes this warning: Warning(linux-2.6.22//include/linux/rmap.h): no structured comments found Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed...
```diff diff --git a/Documentation/DocBook/kernel-api.tmpl b/Documentation/DocBook/kernel-api.tmpl index a0af560ed740..eb42bf9847cb 100644 --- a/Documentation/DocBook/kernel-api.tmpl +++ b/Documentation/DocBook/kernel-api.tmpl @@ -159,7 +159,6 @@ X!Ilib/string.c !Earch/i386/lib/usercopy.c </sect1> <sect1><...
cdccb316c0860b26ad52f622a7592122a62d02b4
Analyze and fix the following issue in the Linux kernel code: kernel-doc: fix leading dot in man-mode output
Problem Details: If a parameter description begins with a '.', this indicates a "request" for "man" mode output (*roff), so it needs special handling. Problem case is in include/asm-i386/atomic.h for function atomic_add_unless(): * @u: ...unless v is equal to u. This parameter description is currently not printed in ...
```diff diff --git a/scripts/kernel-doc b/scripts/kernel-doc index f5862abe0311..1f5835115cad 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -404,7 +404,11 @@ sub output_highlight { print $lineprefix, $blankline; } else { $line =~ s/\\\\\\/\&/g; - print $lineprefix, $line; + if ($outp...
5f8c7c98ae3888cf0a2cf320f514f75cc92f00be
Analyze and fix the following issue in the Linux kernel code: kernel-doc: fix unnamed struct/union warning
Problem Details: Fix kernel-doc warning: Warning(linux-2.6.22-rc2-git2/include/linux/skbuff.h:316): No description found for parameter '}' which is caused by nested anonymous structs/unions ending with: }; }; Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.o...
```diff diff --git a/scripts/kernel-doc b/scripts/kernel-doc index e5bf649e516a..08894f4aab2c 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -154,6 +154,7 @@ use strict; my $errors = 0; my $warnings = 0; +my $anon_struct_union = 0; # match expressions used to find embedded type information my $type...
5fb7dc37dc16fbc8b80d81318a582201ef7e280d
Analyze and fix the following issue in the Linux kernel code: define new percpu interface for shared data
Problem Details: per cpu data section contains two types of data. One set which is exclusively accessed by the local cpu and the other set which is per cpu, but also shared by remote cpus. In the current kernel, these two sets are not clearely separated out. This can potentially cause the same data cacheline shared ...
```diff diff --git a/arch/alpha/kernel/vmlinux.lds.S b/arch/alpha/kernel/vmlinux.lds.S index 449e76f118d3..6f4f0378e708 100644 --- a/arch/alpha/kernel/vmlinux.lds.S +++ b/arch/alpha/kernel/vmlinux.lds.S @@ -69,10 +69,7 @@ SECTIONS . = ALIGN(8); SECURITY_INIT - . = ALIGN(8192); - __per_cpu_start = .; - .data....
2ba2d00363975242dee9bb22cf798b487e3cd61e
Analyze and fix the following issue in the Linux kernel code: AIO sparse fix (type of ki_flags)
Problem Details: Fix type issue reported by latest 'sparse': kiocb.ki_flags should be "unsigned long" (not "long"), to match bitop type signature. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Benjamin LaHaise <bcrl@kvack.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Si...
```diff diff --git a/include/linux/aio.h b/include/linux/aio.h index b903fc02bdb7..d10e608f232d 100644 --- a/include/linux/aio.h +++ b/include/linux/aio.h @@ -86,7 +86,7 @@ struct kioctx; */ struct kiocb { struct list_head ki_run_list; - long ki_flags; + unsigned long ki_flags; int ki_users; unsigned ki_...
64ee4808a786caade50362d5057f65314fdf2f36
Analyze and fix the following issue in the Linux kernel code: eCryptfs: ecryptfs_setattr() bugfix
Problem Details: There is another bug recently introduced into the ecryptfs_setattr() function in 2.6.22. eCryptfs will attempt to treat special files like regular eCryptfs files on chmod, chown, and so forth. This leads to a NULL pointer dereference. This patch validates that the file is a regular file before proce...
```diff diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index e77a2ec71aa5..0a50942b4378 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -902,8 +902,9 @@ static int ecryptfs_setattr(struct dentry *dentry, struct iattr *ia) mutex_lock(&crypt_stat->cs_mutex); if (S_ISDIR(dentry->d_inode->i_mode))...
77afcf78a2ded9a91838734234949c0ead5feb12
Analyze and fix the following issue in the Linux kernel code: PM: Integrate beeping flag with existing acpi_sleep flags
Problem Details: Move "debug during resume from s2ram" into the variable we already use for real-mode flags to simplify code. It also closes nasty trap for the user in acpi_sleep_setup; order of parameters actually mattered there, acpi_sleep=s3_bios,s3_mode doing something different from acpi_sleep=s3_mode,s3_bios. Si...
```diff diff --git a/arch/i386/kernel/acpi/sleep.c b/arch/i386/kernel/acpi/sleep.c index 4ee83577bf61..c42b5ab49deb 100644 --- a/arch/i386/kernel/acpi/sleep.c +++ b/arch/i386/kernel/acpi/sleep.c @@ -14,7 +14,7 @@ /* address in low memory of the wakeup routine. */ unsigned long acpi_wakeup_address = 0; -unsigned lon...
6c961dfb7c903cfd1cd71b506863894038fd704f
Analyze and fix the following issue in the Linux kernel code: PM: Reduce code duplication between main.c and user.c
Problem Details: The SNAPSHOT_S2RAM ioctl code is outdated and it should not duplicate the suspend code in kernel/power/main.c. Fix that. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: Nigel Cunningham <nigel@nigel.suspend2.net> Signed-off-by: Andrew Morton <akpm@linux-founda...
```diff diff --git a/kernel/power/main.c b/kernel/power/main.c index 4d26ad394fb3..32147b57c3bf 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c @@ -65,14 +65,11 @@ static inline void pm_finish(suspend_state_t state) /** * suspend_prepare - Do prep work before entering low-power state. - * @state: State...
8cdd4936c17bd8085cb0dfacc4a37ccf8d0ada7b
Analyze and fix the following issue in the Linux kernel code: PM: disable usermode helper before hibernation and suspend
Problem Details: Use a hibernation and suspend notifier to disable the user mode helper before a hibernation/suspend and enable it after the operation. [akpm@linux-foundation.org: build fix] Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: Nigel Cunningham <nigel@nigel.sus...
```diff diff --git a/kernel/kmod.c b/kernel/kmod.c index 78d365c524ed..928f3678142a 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -33,12 +33,22 @@ #include <linux/kernel.h> #include <linux/init.h> #include <linux/resource.h> +#include <linux/notifier.h> +#include <linux/suspend.h> #include <asm/uaccess.h> ex...
b10d911749d37dccfa5873d2088aea3f074b9e45
Analyze and fix the following issue in the Linux kernel code: PM: introduce hibernation and suspend notifiers
Problem Details: Make it possible to register hibernation and suspend notifiers, so that subsystems can perform hibernation-related or suspend-related operations that should not be carried out by device drivers' .suspend() and .resume() routines. [akpm@linux-foundation.org: build fixes] [akpm@linux-foundation.org: cle...
```diff diff --git a/Documentation/power/notifiers.txt b/Documentation/power/notifiers.txt new file mode 100644 index 000000000000..9293e4bc857c --- /dev/null +++ b/Documentation/power/notifiers.txt @@ -0,0 +1,50 @@ +Suspend notifiers + (C) 2007 Rafael J. Wysocki <rjw@sisk.pl>, GPL + +There are some operations that dev...
10a1803d667e209914eaada9b95525252f23ec78
Analyze and fix the following issue in the Linux kernel code: swsusp: fix hibernation code ordering
Problem Details: Change the code ordering so that hibernation_ops->prepare() is called after device_suspend(). This is needed so that we don't violate the ACPI specification, which states that the _PTS and _GTS system-control methods, executed from acpi_sleep_prepare(), ought to be called after devices have been put i...
```diff diff --git a/kernel/power/disk.c b/kernel/power/disk.c index fa3b43b7206d..77ac605bf20a 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c @@ -133,14 +133,14 @@ int hibernation_snapshot(int platform_mode) /* Free memory before shutting down devices. */ error = swsusp_shrink_memory(); if (error) - ...
a634cc10164d1c229fbeca33923e6a0ed939e894
Analyze and fix the following issue in the Linux kernel code: swsusp: introduce restore platform operations
Problem Details: At least on some machines it is necessary to prepare the ACPI firmware for the restoration of the system memory state from the hibernation image if the "platform" mode of hibernation has been used. Namely, in that cases we need to disable the GPEs before replacing the "boot" kernel with the "frozen" k...
```diff diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c index bc7e16ec8393..42127c0d612c 100644 --- a/drivers/acpi/sleep/main.c +++ b/drivers/acpi/sleep/main.c @@ -217,10 +217,26 @@ static void acpi_hibernation_finish(void) } } +static int acpi_hibernation_pre_restore(void) +{ + acpi_status stat...
a0349828d6d6f95c445674c2953ee9db75c11f8f
Analyze and fix the following issue in the Linux kernel code: PM: Do not require dev spew to get PM_DEBUG
Problem Details: In order to enable things like PM_TRACE, you're required to enable PM_DEBUG, which sends a large spew of messages on boot, and often times can overflow dmesg buffer. Create new PM_VERBOSE and shift that to be the option that enables drivers/base/power's messages. Signed-off-by: Ben Collins <bcollins@...
```diff diff --git a/drivers/base/power/Makefile b/drivers/base/power/Makefile index fff178007208..966a5e287415 100644 --- a/drivers/base/power/Makefile +++ b/drivers/base/power/Makefile @@ -5,6 +5,6 @@ obj-$(CONFIG_PM_TRACE) += trace.o ifeq ($(CONFIG_DEBUG_DRIVER),y) EXTRA_CFLAGS += -DDEBUG endif -ifeq ($(CONFIG_PM...
79352894b28550ee0eee919149f57626ec1b3572
Analyze and fix the following issue in the Linux kernel code: mm: fix clear_page_dirty_for_io vs fault race
Problem Details: Fix msync data loss and (less importantly) dirty page accounting inaccuracies due to the race remaining in clear_page_dirty_for_io(). The deleted comment explains what the race was, and the added comments explain how it is fixed. Signed-off-by: Nick Piggin <npiggin@suse.de> Acked-by: Linus Torvalds <...
```diff diff --git a/mm/memory.c b/mm/memory.c index 61d51da7e17c..50dd3d1f4d18 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1765,6 +1765,15 @@ gotten: unlock: pte_unmap_unlock(page_table, ptl); if (dirty_page) { + /* + * Yes, Virginia, this is actually required to prevent a race + * with clear_page_dirty_f...
6967614761fd305b3414d9485d89dc2e0a407410
Analyze and fix the following issue in the Linux kernel code: ocfs2: release page lock before calling ->page_mkwrite
Problem Details: __do_fault() was calling ->page_mkwrite() with the page lock held, which violates the locking rules for that callback. Release and retake the page lock around the callback to avoid deadlocking file systems which manually take it. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com> Cc: Nick Piggin <ni...
```diff diff --git a/mm/memory.c b/mm/memory.c index eee7fec3ab54..7abd3899848b 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2369,11 +2369,14 @@ static int __do_fault(struct mm_struct *mm, struct vm_area_struct *vma, * address space wants to know that the page is about * to become writable */ - if (v...
d00806b183152af6d24f46f0c33f14162ca1262a
Analyze and fix the following issue in the Linux kernel code: mm: fix fault vs invalidate race for linear mappings
Problem Details: Fix the race between invalidate_inode_pages and do_no_page. Andrea Arcangeli identified a subtle race between invalidation of pages from pagecache with userspace mappings, and do_no_page. The issue is that invalidation has to shoot down all mappings to the page, before it can be discarded from the pa...
```diff diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c index 1a5e8e893d75..bad0b24cb773 100644 --- a/fs/gfs2/ops_file.c +++ b/fs/gfs2/ops_file.c @@ -364,6 +364,8 @@ static int gfs2_mmap(struct file *file, struct vm_area_struct *vma) else vma->vm_ops = &gfs2_vm_ops_private; + vma->vm_flags |= VM_CAN_INVALID...
c32676eea19ce29cb74dba0f97b085e83f6b8915
Analyze and fix the following issue in the Linux kernel code: [XFS] Fix inode size update before data write in xfs_setattr
Problem Details: When changing the file size by a truncate() call, we log the change in the inode size. However, we do not flush any outstanding data that might not have been written to disk, thereby violating the data/inode size update order. This can leave files full of NULLs on crash. Hence if we are truncating the...
```diff diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 401cb00a55d6..1a5ad8cd97b0 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c @@ -589,7 +589,30 @@ xfs_setattr( code = xfs_igrow_start(ip, vap->va_size, credp); } xfs_iunlock(ip, XFS_ILOCK_EXCL); - vn_iowait(vp); /* wait for...
ee6a99b539a50b4e9398938a0a6d37f8bf911550
Analyze and fix the following issue in the Linux kernel code: [TG3]: Fix msi issue with kexec/kdump.
Problem Details: Tina Yang <tina.yang@oracle.com> discovered an MSI related problem when doing kdump. The problem is that the kexec kernel is booted without going through system reset, and as a result, MSI may already be enabled when tg3_init_one() is called. tg3_init_one() calls pci_save_state() which will save the ...
```diff diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 5ee14764fd74..887b9a5cfe48 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -64,8 +64,8 @@ #define DRV_MODULE_NAME "tg3" #define PFX DRV_MODULE_NAME ": " -#define DRV_MODULE_VERSION "3.78" -#define DRV_MODULE_RELDATE "July 11, 2007" +#define...
7dc12d6dd6cc1aa489c6f3e34a75e8023c945da8
Analyze and fix the following issue in the Linux kernel code: [NET] XFRM: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index b48f06fc9fd9..cfaf17c8851e 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -857,7 +857,7 @@ xfrm_policy_flush_secctx_check(u8 type, struct xfrm_audit *audit_info) pol, NULL); return err; } - ...
8238745a39606738c1d8d39f2052959b3e594b04
Analyze and fix the following issue in the Linux kernel code: [NET] TIPC: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 4a8f37f48764..84110172031e 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -1629,8 +1629,8 @@ static struct proto_ops msg_ops = { .getsockopt = getsockopt, .sendmsg = send_msg, .recvmsg = recv_msg, - .mmap = sock_no_mmap, - ...
fb1416a59b070d2dea280bfac3313bf3b8a17cd2
Analyze and fix the following issue in the Linux kernel code: [NET] SUNRPC: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/sunrpc/auth_gss/gss_krb5_crypto.c b/net/sunrpc/auth_gss/gss_krb5_crypto.c index f441aa0b26dc..bfb6a29633dd 100644 --- a/net/sunrpc/auth_gss/gss_krb5_crypto.c +++ b/net/sunrpc/auth_gss/gss_krb5_crypto.c @@ -67,7 +67,7 @@ krb5_encrypt( if (crypto_blkcipher_ivsize(tfm) > 16) { dprintk("RPC:...
9cbcbf4e010ec253df686257f99c819da9b895da
Analyze and fix the following issue in the Linux kernel code: [NET] SCTP: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index f02ce3dddb7b..fd2dfdd7d7fd 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c @@ -1779,7 +1779,7 @@ static sctp_disposition_t sctp_sf_do_dupcook_d(const struct sctp_endpoint *ep, SCTP_COMM_UP, 0, asoc->c.s...
1c899641acd18b8d9d8a61dcb5dd8826fc6c87ea
Analyze and fix the following issue in the Linux kernel code: [NET] RXRPC: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 2c57df9c131b..46f6d572ad2d 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -805,26 +805,26 @@ static int __init af_rxrpc_init(void) } ret = proto_register(&rxrpc_proto, 1); - if (ret < 0) { - printk(KERN_C...
6140efb536e7758cd300461981634ebfd4f51efa
Analyze and fix the following issue in the Linux kernel code: [NET] ROSE: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index f4d3aba00800..976c3cc86a29 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c @@ -816,7 +816,7 @@ rose_try_next_neigh: for (;;) { prepare_to_wait(sk->sk_sleep, &wait, - TASK_INTERRUPTIBLE); + TASK_INTERRUPTIBLE); ...
2b81bff416c4413333b19af627e11fddc620bd84
Analyze and fix the following issue in the Linux kernel code: [NET] RFKILL: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/rfkill/rfkill-input.c b/net/rfkill/rfkill-input.c index 230e35c59786..9f746be58854 100644 --- a/net/rfkill/rfkill-input.c +++ b/net/rfkill/rfkill-input.c @@ -83,7 +83,7 @@ static DEFINE_RFKILL_TASK(rfkill_wlan, RFKILL_TYPE_WLAN); static DEFINE_RFKILL_TASK(rfkill_bt, RFKILL_TYPE_BLUETOOTH); ...
db0c58f998eeb552fb47b82915005259a83613ae
Analyze and fix the following issue in the Linux kernel code: [NET] PACKET: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 7c27bd389b7e..1322d62b5d97 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -108,7 +108,7 @@ Outgoing, dev->hard_header!=NULL Incoming, dev->hard_header==NULL mac_header -> UNKNOWN position. It is very likely, that it poi...
639fc4c381456df0564b23540e0f60b0af83093b
Analyze and fix the following issue in the Linux kernel code: [NET] NETROM: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 5d66490dd290..dc9273295a38 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -720,7 +720,7 @@ static int nr_connect(struct socket *sock, struct sockaddr *uaddr, for (;;) { prepare_to_wait(sk->sk_sleep, &wait, - ...
a5d292646ebf2ee51086f59899a377c85e5d50b2
Analyze and fix the following issue in the Linux kernel code: [NET] NETFILTER: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index ffb6ff8c3528..f752293940f9 100644 --- a/net/netfilter/nf_conntrack_standalone.c +++ b/net/netfilter/nf_conntrack_standalone.c @@ -181,7 +181,7 @@ static int ct_seq_show(struct seq_file *s, void *v) if (seq_p...
9c681b43fae1e402e39d157feaa5df454b9e4f1f
Analyze and fix the following issue in the Linux kernel code: [NET] IPV4: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 2eb909be8041..eff6bce453ee 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -817,7 +817,7 @@ static void nl_fib_input(struct sock *sk, int len) static void nl_fib_lookup_init(void) { netlink_kernel_create(NETLINK_...
23248005fbe5fa32a3f6d00cdec1ecfb115d28eb
Analyze and fix the following issue in the Linux kernel code: [NET] DCCP: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/dccp/ccids/lib/loss_interval.c b/net/dccp/ccids/lib/loss_interval.c index 515225f3a464..dd0fc992b042 100644 --- a/net/dccp/ccids/lib/loss_interval.c +++ b/net/dccp/ccids/lib/loss_interval.c @@ -227,7 +227,7 @@ void dccp_li_update_li(struct sock *sk, struct list_head *li_hist_list, ...
40b77c943468236c6dfad3e7b94348fe70c70331
Analyze and fix the following issue in the Linux kernel code: [NET] CORE: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/core/dev.c b/net/core/dev.c index 6357f54c8ff7..38212c3f9971 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2629,7 +2629,7 @@ void __dev_set_rx_mode(struct net_device *dev) return; if (!netif_device_present(dev)) - return; + return; if (dev->set_rx_mode) dev->set_rx...
00ae02f31519e8d6e374424bbdf0c7381489e416
Analyze and fix the following issue in the Linux kernel code: [NET] BLUETOOTH: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index f6d867e0179f..63caa414945d 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -982,7 +982,7 @@ int hci_recv_fragment(struct hci_dev *hdev, int type, void *data, int count) skb->dev = (void *) hdev; bt_cb(skb)->...
bd3b071b91a8acfe93b01567f556c879db049f99
Analyze and fix the following issue in the Linux kernel code: [NET] AX25: Fix whitespace errors.
Problem Details: Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
```diff diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index c83cf8432970..dae2a42d3d86 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c @@ -1262,7 +1262,7 @@ static int __must_check ax25_connect(struct socket *sock, for (;;) { prepare_to_wait(sk->sk_sleep, &wait, - TASK_INTERRU...
e6917317c0f6a930442c40dc38a6f21710adf961
Analyze and fix the following issue in the Linux kernel code: ACPICA: fix memory leak in acpi_ev_pci_config_region_setup() error path
Problem Details: acpi_ev_pci_config_region_setup() leaks pci_id in the error case of "if (!pci_device_node)" Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
```diff diff --git a/drivers/acpi/events/evrgnini.c b/drivers/acpi/events/evrgnini.c index 400d90fca966..23ee7bc4a705 100644 --- a/drivers/acpi/events/evrgnini.c +++ b/drivers/acpi/events/evrgnini.c @@ -284,6 +284,7 @@ acpi_ev_pci_config_region_setup(acpi_handle handle, } if (!pci_device_node) { + ACPI_FREE(pci_...
9254bc845db90a123cf992e983539d0ee409f22a
Analyze and fix the following issue in the Linux kernel code: ACPI: dock: fix oops when _DCK evaluation fails
Problem Details: Data returned by acpi_get_name in acpi_buffer is not acpi_object and therefore should not be cast to it, otherwise we'll get an nice oops trying to print error message. Also print name of the ACPI object corresponding to the docking station and elevate severity of the message printed when _DCK fails t...
```diff diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index dc3df93d2310..6192c8be66df 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -396,12 +396,11 @@ static void handle_dock(struct dock_station *ds, int dock) union acpi_object arg; struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL ...
cfb7267aaba2b59374d7bc765f038698711b09d8
Analyze and fix the following issue in the Linux kernel code: [PATCH] mac80211: remove rtnl locking in ieee80211_sta.c
Problem Details: The rtnl is held in ieee80211_sta.c to prevent some potential configuration races with userspace. Unfortunately, it also has the potential for deadlocks on interface down. This patch removes the rtnl locking to eliminate the deadlocks. Signed-off-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by:...
```diff diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index ba2bf8f0a347..952d8dd0676c 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c @@ -25,7 +25,6 @@ #include <linux/wireless.h> #include <linux/random.h> #include <linux/etherdevice.h> -#include <linux/rtnetl...
33ccad35a21df51c0d23f3e3e88688524e7b51ed
Analyze and fix the following issue in the Linux kernel code: [PATCH] mac80211: fix GCC warning on 64bit platforms
Problem Details: net/mac80211/ieee80211.c: In function ieee80211_register_hw: net/mac80211/ieee80211.c:4989: warning: comparison of distinct pointer types lacks a cast Size of ieee80211_tx_status_rtap_hdr structure will never be greater than unsigned int. Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W...
```diff diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 6c63dcf9f1ec..c944b17d0fc0 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c @@ -4986,8 +4986,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) * and we need some headroom for passing the frame to monitor * int...
c18c842b1fdf527717303a4e173cbece7ab2deb8
Analyze and fix the following issue in the Linux kernel code: [CIFS] Allow disabling CIFS Unix Extensions as mount option
Problem Details: Previously the only way to do this was to umount all mounts to that server, turn off a proc setting (/proc/fs/cifs/LinuxExtensionsEnabled). Fixes Samba bugzilla bug number: 4582 (and also 2008) Signed-off-by: Steve French <sfrench@us.ibm.com>
```diff diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index a0a2f3186557..1cebb7e34215 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -316,10 +316,10 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m) if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) seq_printf(s, ",posixpaths"); if ...
6924c55492c904695f13c552c461c2211f4fdd6a
Analyze and fix the following issue in the Linux kernel code: locks: fix vfs_test_lock() comment
Problem Details: Thanks to Doug Chapman for pointing out that the comment here is inconsistent with the function prototype. Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
```diff diff --git a/fs/locks.c b/fs/locks.c index 4a8072736efa..4f2d749ac624 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1600,8 +1600,7 @@ asmlinkage long sys_flock(unsigned int fd, unsigned int cmd) /** * vfs_test_lock - test file byte range lock * @filp: The file to test lock for - * @fl: The lock to test - * ...
d2ab0b0c4c2570921a9ec1eff1e3a5143e05b231
Analyze and fix the following issue in the Linux kernel code: locks: convert an -EINVAL return to a BUG
Problem Details: There's no point trying to return an error in these cases, which all represent bugs in the callers. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
```diff diff --git a/fs/locks.c b/fs/locks.c index 924e4a7fb1d5..3c23fd261022 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1348,9 +1348,7 @@ static int __setlease(struct file *filp, long arg, struct file_lock **flp) time_out_leases(inode); - error = -EINVAL; - if (!flp || !(*flp) || !(*flp)->fl_lmops || !(*flp)->...
a1da4dfe35bc36c3bc9716d995c85b7983c38a76
Analyze and fix the following issue in the Linux kernel code: sysfs: kill an extra put in sysfs_create_link() failure path
Problem Details: There is a subtle bug in sysfs_create_link() failure path. When symlink creation fails because there's already a node with the same name, the target sysfs_dirent is put twice - once by failure path of sysfs_create_link() and once more when the symlink is released. Fix it by making only the symlink no...
```diff diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index 2f86e0422290..d056e9695cd6 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c @@ -86,7 +86,9 @@ int sysfs_create_link(struct kobject * kobj, struct kobject * target, const char sd = sysfs_new_dirent(name, S_IFLNK|S_IRWXUGO, SYSFS_KOBJ_LINK); i...
2ee97caf0a6602f749ddbfdb1449e383e1212707
Analyze and fix the following issue in the Linux kernel code: Driver core: check return code of sysfs_create_link()
Problem Details: Check for return value of sysfs_create_link() in device_add() and device_rename(). Add helper functions device_add_class_symlinks() and device_remove_class_symlinks() to make the code easier to read. [akpm@linux-foundation.org: fix unused var warnings] Signed-off-by: Cornelia Huck <cornelia.huck@de....
```diff diff --git a/drivers/base/core.c b/drivers/base/core.c index 91a0367d583e..3599ab2506d2 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -660,6 +660,82 @@ static int setup_parent(struct device *dev, struct device *parent) return 0; } +static int device_add_class_symlinks(struct device *dev) +{...
6b09448ab81e90e59c09cfbc6d0d612dc84a2b1d
Analyze and fix the following issue in the Linux kernel code: dev_vdbg() documentation
Problem Details: Update CodingStyle to talk about "-DDEBUG" message conventions and the new "-DVERBOSE_DEBUG" convention. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
```diff diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle index a667eb1fc26e..7f1730f1a1ae 100644 --- a/Documentation/CodingStyle +++ b/Documentation/CodingStyle @@ -633,12 +633,27 @@ covers RTL which is used frequently with assembly language in the kernel. Kernel developers like to be seen as liter...
aebdc3b450a3febf7d7d00cd2235509055ec7082
Analyze and fix the following issue in the Linux kernel code: dev_vdbg(), available with -DVERBOSE_DEBUG
Problem Details: This defines a dev_vdbg() call, which is enabled with -DVERBOSE_DEBUG. When enabled, dev_vdbg() acts just like dev_dbg(). When disabled, it is a NOP ... just like dev_dbg() without -DDEBUG. The specific code was moved out of a USB patch, but lots of drivers have similar support. That is, code can n...
```diff diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 73c49362cd47..654857493a82 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c @@ -29,13 +29,6 @@ #include "hcd.h" #include "usb.h" -#define VERBOSE_DEBUG 0 - -#if VERBOSE_DEBUG -#define dev_vdbg dev_dbg -#else -#def...
e080e436f605877e47e4950f5386ed843badbb1b
Analyze and fix the following issue in the Linux kernel code: sysfs: fix sysfs root inode nlink accounting
Problem Details: While making sysfs indoes hashed, sysfs root inode was left out. Now that nlink accounting depends on the inode being on the hash, sysfs root inode nlink isn't adjusted properly. Put sysfs root inode on the inode hash by allocating it using sysfs_get_inode() like other sysfs inodes. While at it, mas...
```diff diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 402cc356203c..60714d075c2f 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c @@ -43,19 +43,19 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent) sb->s_time_gran = 1; sysfs_sb = sb; - inode = new_inode(sysfs_sb); + /* get...
2c19c49a59ccf2162c0eb999de1ec60c0e07a533
Analyze and fix the following issue in the Linux kernel code: Documentation fix devres.txt: lib/iomap.c -> lib/devres.c
Problem Details: Signed-off-by: Brandon Philips <bphilips@suse.de> Acked-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
```diff diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt index 6c8d8f27db34..8569072fa387 100644 --- a/Documentation/driver-model/devres.txt +++ b/Documentation/driver-model/devres.txt @@ -207,7 +207,7 @@ responsibility. This is usually non-issue because bus ops and resource ...
01da2425f327d7ac673e594bee5655523115970b
Analyze and fix the following issue in the Linux kernel code: sysfs: avoid kmem_cache_free(NULL)
Problem Details: kmem_cache_free() with NULL is not allowed. But it may happen if out of memory error is triggered in sysfs_new_dirent(). This patch fixes that error handling. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
```diff diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index aee966c44aac..2e6775a836f2 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c @@ -361,20 +361,20 @@ static struct dentry_operations sysfs_dentry_ops = { struct sysfs_dirent *sysfs_new_dirent(const char *name, umode_t mode, int type) { char *dup_name = NULL; -...
f9e29228e6f2058e7b086115ecb7008630ebd832
Analyze and fix the following issue in the Linux kernel code: eHEA: Fix bonding support
Problem Details: The driver didn't allow an interface's MAC address to be modified if the respective interface wasn't setup - a failing Hcall was the result. Thus bonding wasn't usable. The fix moves the failing Hcall which was registering a MAC address for the reception of BC packets in firmware from the port up and d...
```diff diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h index 6628fa622e2c..489c8b260dd8 100644 --- a/drivers/net/ehea/ehea.h +++ b/drivers/net/ehea/ehea.h @@ -39,7 +39,7 @@ #include <asm/io.h> #define DRV_NAME "ehea" -#define DRV_VERSION "EHEA_0070" +#define DRV_VERSION "EHEA_0071" /* eHEA capabi...
308a90683da9a3e3da1023a88496f76f95c5dcd8
Analyze and fix the following issue in the Linux kernel code: fix wrong argument of tc35815_read_plat_dev_addr()
Problem Details: Fix wrong argument of tc35815_read_plat_dev_addr() Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Signed-off-by: Jeff Garzik <jeff@garzik.org>
```diff diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index 75655add3f34..7f94ca930988 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c @@ -626,7 +626,7 @@ static int __devinit tc35815_read_plat_dev_addr(struct net_device *dev) return -ENODEV; } #else -static int __devinit tc35815_read_pl...
7132ab7f6e0309bb8e0424e395ba149aee0c750e
Analyze and fix the following issue in the Linux kernel code: Fix RGMII-ID handling in gianfar
Problem Details: The TSEC/eTSEC can detect the interface to the PHY automatically, but it isn't able to detect whether the RGMII connection needs internal delay. So we need to detect that change in the device tree, propagate it to the platform data, and then check it if we're in RGMII. This fixes a bug on the 8641D H...
```diff diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index c0ddc80d8160..3289fab01e92 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c @@ -197,6 +197,7 @@ static int __init gfar_of_init(void) struct gianfar_platform_data gfar_data; const unsigned int *id...
af2d940df2b60b15c271033d381c2f3ead655562
Analyze and fix the following issue in the Linux kernel code: Fix Vitesse RGMII-ID support
Problem Details: The Vitesse PHY on the 8641D needs to be set up with internal delay to work in RGMII mode. So we add skew when it is set to RGMII_ID mode. Signed-off-by: Andy Fleming <afleming@freescale.com> Signed-off-by: Haruki Dai <Dai.Haruki@freescale.com> Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
```diff diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index f39ab76e6f67..6a5385647911 100644 --- a/drivers/net/phy/vitesse.c +++ b/drivers/net/phy/vitesse.c @@ -21,6 +21,10 @@ /* Vitesse Extended Control Register 1 */ #define MII_VSC8244_EXT_CON1 0x17 #define MII_VSC8244_EXTCON1_INIT ...
cc65185d400c4e8698ff1c1b59f90bd491e9bda5
Analyze and fix the following issue in the Linux kernel code: Add phy-connection-type to gianfar nodes
Problem Details: The TSEC/eTSEC automatically detect their PHY interface type, unless the type is RGMII-ID (RGMII with internal delay). In that situation, it just detects RGMII. In order to fix this, we need to pass in rgmii-id if that is the connection type. Signed-off-by: Andy Fleming <afleming@freescale.com>
```diff diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt index 0c2434822094..76733a3962f0 100644 --- a/Documentation/powerpc/booting-without-of.txt +++ b/Documentation/powerpc/booting-without-of.txt @@ -1250,6 +1250,12 @@ platforms are moved over to use the flatte...
1d5e83aac54b64b71b225fd5cf2e82491ad145f6
Analyze and fix the following issue in the Linux kernel code: Fix Vitesse 824x PHY interrupt acking
Problem Details: The Vitesse 824x PHY doesn't allow an interrupt to be cleared if the mask bit for that interrupt isn't set. This means that the PHY Lib's order of handling interrupts (disable, then clear) breaks on this PHY. However, clearing then disabling the interrupt opens up the code for a silly race condition....
```diff diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index 596222b260d6..f39ab76e6f67 100644 --- a/drivers/net/phy/vitesse.c +++ b/drivers/net/phy/vitesse.c @@ -65,7 +65,15 @@ static int vsc824x_config_init(struct phy_device *phydev) static int vsc824x_ack_interrupt(struct phy_device *phydev) ...
9c9bdf4d50730fd04b06077e22d7a83b585f26b5
Analyze and fix the following issue in the Linux kernel code: firewire: fix memory leak of fw_request instances
Problem Details: Found and debugged by Jay Fenlason <fenlason@redhat.com>. The bug was especially noticeable with direct I/O over fw-sbp2. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Kristian Høgsberg <krh@redhat.com>
```diff diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c index c4b3417a5dac..3ce8e2fbe15f 100644 --- a/drivers/firewire/fw-transaction.c +++ b/drivers/firewire/fw-transaction.c @@ -605,8 +605,10 @@ fw_send_response(struct fw_card *card, struct fw_request *request, int rcode) * check...
b980f5a224f3df6c884dbf5ae48797ce352ba139
Analyze and fix the following issue in the Linux kernel code: firewire: fw-ohci: fix "scheduling while atomic"
Problem Details: context_stop is called by bus_reset_tasklet, among else. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
```diff diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c index 996c911c81a0..db703758db98 100644 --- a/drivers/firewire/fw-ohci.c +++ b/drivers/firewire/fw-ohci.c @@ -587,7 +587,7 @@ static void context_stop(struct context *ctx) break; fw_notify("context_stop: still active (0x%08x)\n", reg)...
3da86ee4f1884c70edbf76f61bfbbe028d2d1685
Analyze and fix the following issue in the Linux kernel code: [AVR32] Fix atomic_add_unless() and atomic_sub_unless()
Problem Details: These functions depend on "result" being initalized to 0, but "result" is not included as an input constraint to the inline assembly block following its initialization, only as an output constraint. Thus gcc thinks it doesn't need to initialize it, so result ends up undefined if the "unless" condition ...
```diff diff --git a/include/asm-avr32/atomic.h b/include/asm-avr32/atomic.h index b9c2548a52f3..7ef3862a73d0 100644 --- a/include/asm-avr32/atomic.h +++ b/include/asm-avr32/atomic.h @@ -101,7 +101,7 @@ static inline int atomic_sub_unless(atomic_t *v, int a, int u) " mov %1, 1\n" "1:" : "=&r"(tmp), "=&r"(resul...
aa15f63790cfd4110ff57c37aa1c6c34133d8a09
Analyze and fix the following issue in the Linux kernel code: [AVR32] Fix build error in parse_tag_rdimg()
Problem Details: This code is inside an #ifdef with a misspelled config symbol, so it hasn't been used for a long time. Fix it before fixing the config symbol to keep bisection working. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
```diff diff --git a/arch/avr32/kernel/setup.c b/arch/avr32/kernel/setup.c index b279d66acf5f..bf1f01600c24 100644 --- a/arch/avr32/kernel/setup.c +++ b/arch/avr32/kernel/setup.c @@ -323,7 +323,7 @@ static int __init parse_tag_rdimg(struct tag *tag) return 0; } - ret = add_reserved_region(mem->start, mem->start ...
7ad37df02c529525c4ad19035359af89d2d2a5bd
Analyze and fix the following issue in the Linux kernel code: [x86 setup] VGA: Clear the Protect bit before setting the vertical height
Problem Details: If the user has asked for the vertical height registers to be recomputed by setting bit 15 in the video mode number, we do so without clearing the Protect bit in the Vertical Retrace Register before setting the Overflow register. As a result, if the VGA BIOS had set the Protect bit, the write to the O...
```diff diff --git a/arch/i386/boot/video.c b/arch/i386/boot/video.c index 027a2c90300b..958130ef0042 100644 --- a/arch/i386/boot/video.c +++ b/arch/i386/boot/video.c @@ -195,7 +195,7 @@ static void vga_recalc_vertical(void) { unsigned int font_size, rows; u16 crtc; - u8 ov; + u8 pt, ov; set_fs(0); font_size...
5593eaa854d0b23c3b270933a93b9b82946df729
Analyze and fix the following issue in the Linux kernel code: [x86 setup] Fix assembly constraints
Problem Details: Fix incorrect assembly constraints. In particular, fix memory constraints used inside push..pop, which can cause invalid operation since gcc may generate %esp-relative references. Additionally: outl() should have "dN" not "dn". query_mca() shouldn't listen 16/32-bit registers in an 8-bit only conte...
```diff diff --git a/arch/i386/boot/boot.h b/arch/i386/boot/boot.h index 0329c4fe4f88..dec70c9b6050 100644 --- a/arch/i386/boot/boot.h +++ b/arch/i386/boot/boot.h @@ -56,7 +56,7 @@ static inline u16 inw(u16 port) static inline void outl(u32 v, u16 port) { - asm volatile("outl %0,%1" : : "a" (v), "dn" (port)); + asm...
9aa3909c0ea33da41755e15182fa4f88ae036d83
Analyze and fix the following issue in the Linux kernel code: [x86 setup] build/tools.c: fix comment
Problem Details: Correct a comment in arch/i386/boot/build/tools.c; we now build the kernel from only two components instead of three, since the boot sector has been integrated in the setup code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
```diff diff --git a/arch/i386/boot/tools/build.c b/arch/i386/boot/tools/build.c index 886f47d8a488..b4248740ff0d 100644 --- a/arch/i386/boot/tools/build.c +++ b/arch/i386/boot/tools/build.c @@ -5,7 +5,7 @@ */ /* - * This file builds a disk-image from three different files: + * This file builds a disk-image from t...
bd58df6d522d5a9c791f6a4820e480e9be60650d
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (5844): ivtv: add high volume debugging flag
Problem Details: Add support for high volume debug messages, allowing them to be turned on selectively. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index ab7c3f6d3531..4c93466a89e5 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c @@ -181,7 +181,7 @@ MODULE_PARM_DESC(secam, "Set SECAM standard: B, G, H, D, K, L, LC"); ...
90851fe9fad68db24da8cb497bad7327b97ed3d2
Analyze and fix the following issue in the Linux kernel code: V4L/DVB (5843): ivtv: fix missing signal_pending check.
Problem Details: Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
```diff diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c index d538efaf61c9..287117187499 100644 --- a/drivers/media/video/ivtv/ivtv-streams.c +++ b/drivers/media/video/ivtv/ivtv-streams.c @@ -807,7 +807,6 @@ int ivtv_stop_v4l2_encode_stream(struct ivtv_stream *s, int gop_e...