summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* staging: wlags49_h2: fix format of timeStamp debug outputAndy Shevchenko2010-10-191-2/+11
| | | | | Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: batman-adv: process OGMs bigger than MAX_AGGREGATION_BYTESMarek Lindner2010-10-191-4/+3
| | | | | | | Reported-by: Sam Yeung <sam.cwyeung@gmail.com> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: batman-adv: fix crash when new OGM is generatedMarek Lindner2010-10-191-2/+8
| | | | | | | | | | If aggregation is not enabled the local translation table can grow much bigger and expects to fill a full ethernet packet. Reported-by: Sam Yeung <sam.cwyeung@gmail.com> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: batman-adv: protect against ogm packet overflow by checking table ↵Marek Lindner2010-10-191-2/+7
| | | | | | | | | length Reported-by: Sam Yeung <sam.cwyeung@gmail.com> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: batman-adv: document fragmentation sysfs APIMarek Lindner2010-10-191-0/+8
| | | | | | Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: batman-adv: Fix resizing of broadcast seqno buffers on if deletionLinus Lüssing2010-10-191-2/+2
| | | | | | | | | | Not only the entries of the deleted interface got erased, but also all ones with a lower if_num. This commit fixes this issue by setting the destination appropriately. Signed-off-by: Linus Lüssing <linus.luessing@web.de> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: batman-adv: Don't dereference unchecked incoming soft_ifaceSven Eckelmann2010-10-191-2/+5
| | | | | | | | | | | | send_packet derefenced forw_packet->if_incoming and checked if forw_packet->if_incoming is NULL. This cannot happen, but still makes irritates when reading through the functions. Reported-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: batman-adv: Add hash recommendations to TODOSven Eckelmann2010-10-191-0/+4
| | | | | | | | | David Miller <davem@davemloft.net> recommended in 20100924.134334.28812338.davem@davemloft.net that we must make the hash abstraction helper more efficient and may remove it completely. Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: sst: more copy_to_user() changesDan Carpenter2010-10-151-43/+30
| | | | | | | | | | | | | | | | | Vinod wanted the copy_to_user() calls in this format: if (copy_to_user()) retval = -EFAULT; instead of this: retval = copy_to_user(); if (retval) retval = -EFAULt; I've done that for the whole intel_sst_app_interface.c file. In the process I noticed a couple more places that returned -EBUSY or -EAGAIN instead of -EFAULT. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: intel_sst: off by one bugDan Carpenter2010-10-152-2/+1
| | | | | | | | | | | | | | | This should be >= instead of > or we go passed the end of the array. Also the arrays are declared with size MAX_NUM_STREAMS. This is the only place that uses MAX_NUM_STREAMS_MFLD. It seems like asking for trouble to use two variables for the same information. I've changed everything to use MAX_NUM_STREAMS. This bug isn't really harmful. In the worst case, if you enabled debugging then you would see a message. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: intel_sst: return -EFAULT if copy_to_user() failsDan Carpenter2010-10-151-1/+3
| | | | | | | | | copy_to_user() returns the number of bytes remaining to be copied but we want to return an error code. And that error code is -EFAULT not -EIO. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: hv: Convert camel cased functions in channel_mgmt.c to lower caseHaiyang Zhang2010-10-154-53/+55
| | | | | | | | Convert camel cased functions in channel_mgmt.c to lower case Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: hv: Convert camel cased local variable names in channel_mgmt.c to ↵Haiyang Zhang2010-10-151-125/+133
| | | | | | | | | | lower case Convert camel cased local variable names in channel_mgmt.c to lower case Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: hv: Convert camel cased parameter in channel_interface.h to lower caseHaiyang Zhang2010-10-151-2/+2
| | | | | | | | Convert camel cased parameter in channel_interface.h to lower case Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: hv: Convert camel cased function names in channel_interface.c to ↵Haiyang Zhang2010-10-153-22/+22
| | | | | | | | | | lower cases Convert camel cased function names in channel_interface.c to lower cases Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: hv: Convert camel cased local variables in channel_interface.c to ↵Haiyang Zhang2010-10-151-62/+64
| | | | | | | | | | lower cases Convert camel cased local variables in channel_interface.c to lower cases Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: tidspbridge: Clean up error-handling codeJulia Lawall2010-10-151-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the first hunk, 0 is returned on memory allocation failure, even though other failures return -ENOMEM or other similar values. In the second hunk, there was error handling code that returned without freeing psz_path_name. A simplified version of the semantic match that finds the first problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression ret; expression x,e1,e2,e3; @@ ret = 0 ... when != ret = e1 *x = \(kmalloc\|kcalloc\|kzalloc\)(...) ... when != ret = e2 if (x == NULL) { ... when != ret = e3 return ret; } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Use specific error return code for reg_ft1000_netdev().Marek Belisko2010-10-153-5/+7
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Use specific return error codes.Marek Belisko2010-10-151-13/+17
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Check return value when init net device.Marek Belisko2010-10-151-1/+5
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Remove DRVMGS typedef usage.Marek Belisko2010-10-153-9/+9
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Remove PSEUDO_HDR typedef usage.Marek Belisko2010-10-155-63/+27
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Remove PROV_RECORD typedef usage.Marek Belisko2010-10-153-11/+10
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Remove APP_INFO_BLOCK typedef usage.Marek Belisko2010-10-151-14/+13
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Remove DSPINITMSG typedef usage.Marek Belisko2010-10-152-15/+15
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Remove MEDIAMSG typedef usage.Marek Belisko2010-10-152-5/+4
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: ft1000: Remove unused function ft1000_hbchk()Marek Belisko2010-10-151-147/+1
| | | | | Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: intel_sst: cleanup naming a littleDan Carpenter2010-10-151-5/+3
| | | | | | | | | | &sst_drv_ctx->streams[str_id].lock and &stream->lock are the same. The mutex_lock() uses &stream->lock so this makes things consistent and it's nicer to read as well. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: ft1000-usb: use the correct list headDan Carpenter2010-10-151-1/+1
| | | | | | | | | Using pdpram_blk here would cause an oops. We intended to use &freercvpool. Signed-off-by: Dan Carpenter <error27@gmail.com> Tested by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: lirc: fix PTR_ERR() checkDan Carpenter2010-10-151-1/+1
| | | | | | | | This is a typo. It's supposed to be IS_ERR() here instead of PTR_ERR(). Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: ft1000-usb: fix array overflowDan Carpenter2010-10-151-2/+1
| | | | | | | | | | | | | | The code here is supposed checking if we exited the loop without hitting a break. The problem is that in the error handling "i" is out of bounds and it corrupts memory when we do an info->app_info[i].nRxMsgMiss++. >From the comments, it looks like someone noticed this corruption and updated the code, but didn't totally fix the problem. The correct fix is just to remove nRxMsgMiss++ from the error path. I believe this bug can be triggered remotely. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_dectlk.c: style fixesChristopher Brannon2010-10-151-15/+22
| | | | | | | | | | * Clean this file based on reports from checkpatch.pl. * Replace a function-like macro with an inline function. * Remove an incorrect use of the volatile qualifier. The previously-volatile variable is now always protected by a spinlock. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_txprt.c: style fixesChristopher Brannon2010-10-151-7/+7
| | | | | | | * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_spkout.c: style fixesChristopher Brannon2010-10-151-8/+8
| | | | | | | * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_soft.c: style fixesChristopher Brannon2010-10-151-21/+34
| | | | | | | | | * Clean this file based on reports from checkpatch.pl. * Make the file_operations structure const. * Use strict_strtoul instead of simple_strtoul. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_ltlk.c: style fixesChristopher Brannon2010-10-151-11/+10
| | | | | | | | * Clean this file based on reports from checkpatch.pl. * Remove an unused function-like macro. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_keypc.c: style fixesChristopher Brannon2010-10-151-10/+18
| | | | | | | | | * Clean this file based on reports from checkpatch.pl. * Eliminate the unused synth_readable macro. * Convert function-like macros to inline functions. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_dummy.c: style fixesChristopher Brannon2010-10-151-7/+7
| | | | | | | * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_dtlk.c: style fixesChristopher Brannon2010-10-151-20/+36
| | | | | | | | | * Clean this file based on reports from checkpatch.pl. * Replace function-like macros with inline functions. * Simplify some boolean expressions. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_decpc.c: style fixesChristopher Brannon2010-10-151-10/+11
| | | | | | | * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_decext.c: style fixesChristopher Brannon2010-10-151-13/+24
| | | | | | | | | * Clean this file based on reports from checkpatch.pl. * Replace function-like macros with inline macros. * Eliminate a use of the ternary operator, for readability. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_bns.c: style fixesChristopher Brannon2010-10-151-7/+7
| | | | | | | * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_audptr.c: style fixesChristopher Brannon2010-10-151-8/+8
| | | | | | | * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_apollo.c: style fixesChristopher Brannon2010-10-151-10/+12
| | | | | | | * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_acntsa.c: style fixesChristopher Brannon2010-10-151-8/+7
| | | | | | | | * Clean this file based on reports from checkpatch.pl. * Eliminate an unused function-like macro. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: speakup: speakup_acntpc.c: style fixesChristopher Brannon2010-10-151-12/+20
| | | | | | | | | * Clean this file based on reports from checkpatch.pl. * Eliminate the unused synth_readable macro. * Convert function-like macros to inline functions. Signed-off-by: Christopher Brannon <chris@the-brannons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* drivers: misc: ti-st: fix review commentsPavan Savoy2010-10-143-65/+25
| | | | | | | | | | | | | Based on comments from Jiri Slaby, drop the register storage specifier, remove the unused code, cleanup the const to non-const type casting. Also make the line discipline ops structure static, since its a singleton, unmodified structure which need not be in heap. Reported-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Pavan Savoy <pavan_savoy@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove unrefrenced malloced fieldmike.rapoport@gmail.com2010-10-141-2/+0
| | | | | | | from 'struct osl_info' structure Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: replace MFREE with kfreemike.rapoport@gmail.com2010-10-1428-145/+115
| | | | | Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove unused NATIVE_{MALLOC,MFREE}mike.rapoport@gmail.com2010-10-141-3/+0
| | | | | Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
OpenPOWER on IntegriCloud