OBD_ALLOC_PTR(uuid) invokes kmalloc, which may return NULL. This fix
adds a check before dereferencing such pointer.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/lustre/lustre/obdclass/obd_mount.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/staging/lustre/lustre
The comment for intel_cpu_fifo_underrun_irq_handler() is not consistent
with the code and the rest of the comment for this routine. This patch
fixes this typo in comment.
Signed-off-by: Kumar Amit Mehta
---
drivers/gpu/drm/i915/intel_fifo_underrun.c | 2 +-
1 file changed, 1 insertion(+), 1
In mdc_kuc_write(), OBD_ALLOC(lh, len) may leave 'lh' to NULL as kmalloc
may fail to allocate memory. This fix adds a check to avoid, dereferencing
a NULL pointer.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/lustre/lustre/mdc/lproc_mdc.c | 2 ++
1 file changed, 2 insertion
In rtw_check_bcn_info(), check the return value of kzalloc() before
dereferencing it, to avoid NULL pointer dereference.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/rtl8188eu/core
Kernel style is that if one side of the if else statement gets has curly
braces then both side should have them.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/pcl812.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/comedi/drivers
On Fri, Apr 04, 2014 at 04:26:51PM +0300, Dan Carpenter wrote:
> On Fri, Apr 04, 2014 at 02:48:52PM +0300, Kumar Amit Mehta wrote:
> > On Fri, Apr 04, 2014 at 02:07:07PM +0300, Dan Carpenter wrote:
> > > On Fri, Apr 04, 2014 at 01:05:29PM +0300, Kumar Amit Mehta wrote:
> >
On Fri, Apr 04, 2014 at 02:07:07PM +0300, Dan Carpenter wrote:
> On Fri, Apr 04, 2014 at 01:05:29PM +0300, Kumar Amit Mehta wrote:
> > Fixed a coding style issue. Reported by checkpatch.pl
> >
>
> It's better if the commit messages are more specific than this.
So, shou
Fixed a coding style issue. Reported by checkpatch.pl
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/pcl812.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/comedi/drivers/pcl812.c
b/drivers/staging/comedi/drivers/pcl812.c
index
'struct tty_struct’ has no member named ‘low_latency’
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/sb105x/sb_pci_mp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/sb105x/sb_pci_mp.c
b/drivers/staging/sb105x/sb_pci_mp.c
index c9d6ee3..56
Return -ENOMEM in ni_E_init if ni_gpct_device_construct returns NULL
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/ni_mio_common.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c
b/drivers/staging/comedi/drivers
On Tue, May 28, 2013 at 05:20:41PM -0700, Kent Overstreet wrote:
> On Tue, May 28, 2013 at 12:31:15AM -0700, Kumar Amit Mehta wrote:
> > bio_alloc_bioset returns NULL on failure. This fix adds a missing check
> > for potential NULL pointer dereferencing.
>
> Whoops, th
Name of major driver can be of maximum of DISK_NAME_LEN size, therefore
use strlcpy instead of strcpy.
Signed-off-by: Kumar Amit Mehta
---
drivers/md/md.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 0bbe710..9450a2c 100644
--- a
bio_alloc_bioset returns NULL on failure. This fix adds a missing check
for potential NULL pointer dereferencing.
Signed-off-by: Kumar Amit Mehta
---
drivers/md/bcache/io.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/md/bcache/io.c b/drivers/md/bcache/io.c
index 29f344b
Audit the return value of cdev_alloc and hence fixes a potential NULL pointer
dereferencing.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/vme/devices/vme_user.c |4
1 file changed, 4 insertions(+)
diff --git a/drivers/staging/vme/devices/vme_user.c
b/drivers/staging/vme
fix for incorrect assignment of signed expression to unsigned variable.
Signed-off-by: Kumar Amit Mehta
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
b
On Sat, Mar 23, 2013 at 10:56:47PM +0300, Dan Carpenter wrote:
> On Sat, Mar 23, 2013 at 11:52:55AM -0700, Kumar Amit Mehta wrote:
> > fix for incorrect assignment of signed expression to unsigned variable.
> >
>
> This fix isn't right.
>
> &
fix for incorrect assignment of signed expression to unsigned variable.
Signed-off-by: Kumar Amit Mehta
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x
fix a missing end-of-statement by adding a semicolon.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/ni_atmio.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/comedi/drivers/ni_atmio.c
b/drivers/staging/comedi/drivers/ni_atmio.c
index
fix for instances of DMA buffer on stack(being passed to usb_control_msg) for
the USB-DUXfast Board driver.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/usbduxfast.c | 30 ---
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/drivers
fix for instances of DMA buffer on stack(being passed to usb_control_msg) for
the USB-DUX-D Board driver.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/usbdux.c | 31 +++
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/drivers
This patch series fixes couple of instances of DMA buffers on stack(being passed
to usb_control_msg) for comedi USB drivers. Found using smatch.
Kumar Amit Mehta (2):
staging: comedi: drivers: usbdux.c: fix DMA buffers on stack
staging: comedi: drivers: usbduxfast.c: fix for DMA buffers on
On Fri, Feb 22, 2013 at 10:02:44AM +, Ian Abbott wrote:
> On 2013-02-22 06:07, Kumar Amit Mehta wrote:
> >This patch fixes an instance of DMA buffer on stack(being passed to
> >usb_control_msg)for the USB-DUXsigma Board driver. Found using smatch.
> >
>
> Looks good
This patch fixes an instance of DMA buffer on stack(being passed to
usb_control_msg)for the USB-DUXsigma Board driver. Found using smatch.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/usbduxsigma.c | 27 --
1 file changed, 17 insertions(+), 10
This patch fixes an instance of DMA buffer on stack(being passed to
usb_control_msg)for the USB-DUXsigma Board driver. Found using smatch.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/usbduxsigma.c | 37 +-
1 file changed, 24 insertions(+), 13
When memory allocation using, kmalloc() fails, report appropriate error value.
Signed-off-by: Kumar Amit Mehta
---
drivers/net/wireless/hostap/hostap_ap.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/hostap/hostap_ap.c
b/drivers/net/wireless
This patch fixes an instance of DMA buffer on stack(being passed to
usb_control_msg) for the wireless USB version of the Agere Orinoco card driver.
It also fixes the missing audit for the return value of firmware download
routine. Found using smatch.
Signed-off-by: Kumar Amit Mehta
---
drivers
fix for missing end-of-statement by adding a semicolon
Signed-off-by: Kumar Amit Mehta
---
.../comedi/drivers/addi-data/hwdrv_apci3200.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c
b/drivers/staging
fix for a potential NULL pointer dereference and removal of a redundant
assignment operation. Found using smatch.
Signed-off-by: Kumar Amit Mehta
---
drivers/net/ethernet/neterion/vxge/vxge-traffic.c |8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/net
Add the missing header include for 'struct urb' datatypes to avoid
potential build issues. Found using smatch.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/wlan-ng/hfa384x.h |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/wlan-ng/hfa384x.h
b/drivers/st
Remove the TIOCSSOFTCAR ioctl handler from dgrp driver and let the core tty
layer to take care of this ioctl instead.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/dgrp/dgrp_tty.c |7 ---
1 file changed, 7 deletions(-)
diff --git a/drivers/staging/dgrp/dgrp_tty.c b/drivers
fix for missing audits for return values of get_user() and put_user().
Inspecting the return values of get/put_user() would make the access_ok()
redundant, hence removing calls to access_ok() in such scenarios.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/dgrp/dgrp_tty.c | 22
This patch series fixes two issues in dgrp driver:
i) Removes the TIOCSSOFTCAR ioctl handler from dgrp driver so as to allow the
core tty layer to take care of this ioctl instead.
ii) Audits the return value of get_user() and put_user() and return -EFAULT in
case of error.
--
1.7.9.5
--
To unsu
On Mon, Nov 19, 2012 at 02:15:54PM +0300, Dan Carpenter wrote:
> On Mon, Nov 19, 2012 at 04:25:31PM +0530, Kumar Amit Mehta wrote:
> > -- fix for missing audits for return values of get_user() and put_user().
> > -- Remove the TIOCSSOFTCAR ioctl handling from dgrp driver.
>
>
Remove the TIOCSSOFTCAR ioctl handler from dgrp driver to allow the core tty
layer to take care of this ioctl instead.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/dgrp/dgrp_tty.c |7 ---
1 file changed, 7 deletions(-)
diff --git a/drivers/staging/dgrp/dgrp_tty.c b/drivers
-- fix for missing audits for return values of get_user() and put_user().
-- Remove the TIOCSSOFTCAR ioctl handling from dgrp driver.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/dgrp/dgrp_tty.c | 25 ++---
1 file changed, 10 insertions(+), 15 deletions(-)
diff
Inspect the return value of register_netdev() in the driver probe routine and
return -ENODEV in case of error.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/rtl8192e/rtl8192e/rtl_core.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192e
Inspect the return value of put_user() and return -EFAULT on error.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/dgrp/dgrp_tty.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/dgrp/dgrp_tty.c b/drivers/staging/dgrp/dgrp_tty.c
index
Inspect the return value of put_user() and return -EFAULT on error.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/dgrp/dgrp_tty.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/dgrp/dgrp_tty.c b/drivers/staging/dgrp/dgrp_tty.c
index
Inspect the return value of register_netdev() in the driver probe routine and
return -ENODEV in case of error.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/rtl8187se/r8180_core.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8187se
Inspect the return value of get_user() and return -EFAULT on error.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/dgrp/dgrp_tty.c |9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/dgrp/dgrp_tty.c b/drivers/staging/dgrp/dgrp_tty.c
index b294197
This fix adds checks for inspecting the return value of put_user() and return
-EFAULT on error.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/dgrp/dgrp_tty.c |9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/dgrp/dgrp_tty.c b/drivers/staging
fixed few error and warning messages as reported by checkpatch.pl
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/comedi/drivers/jr3_pci.c |9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/comedi/drivers/jr3_pci.c
b/drivers/staging/comedi
fix for few error messages as reported by checkpatch.pl
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/tidspbridge/dynload/reloc.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/tidspbridge/dynload/reloc.c
b/drivers/staging/tidspbridge/dynload
fixed few error messages as reported by checkpatch.pl
Signed-off-by: Kumar Amit Mehta
---
.../staging/tidspbridge/dynload/dload_internal.h |8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/tidspbridge/dynload/dload_internal.h
b/drivers/staging
Fixed some coding style issues.
Signed-off-by: Kumar Amit Mehta
---
.../ethernet/qlogic/netxen/netxen_nic_ethtool.c| 86 ++--
1 file changed, 43 insertions(+), 43 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
b/drivers/net/ethernet
checkpatch.pl throws error message for the current code. This patch fixes
this coding style issue.
Signed-off-by: Kumar Amit Mehta
---
drivers/net/ethernet/qlogic/qlge/qlge_dbg.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ethernet/qlogic
checkpatch.pl throws error message for the current code. This patch fixes
coding style issue.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/wlan-ng/hfa384x_usb.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c
b/drivers
On Fri, Nov 02, 2012 at 09:55:55AM +0300, Dan Carpenter wrote:
> On Thu, Nov 01, 2012 at 11:42:59PM -0700, Kumar Amit Mehta wrote:
> > fix for macro coding style.
> >
>
> No. The parenthesis are not needed. I assume this is a
> checkpatch.pl warning?
>
> rega
remove unnecessary semicolon from the macro definition
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/iio/adc/ad7280a.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/iio/adc/ad7280a.c
b/drivers/staging/iio/adc/ad7280a.c
index cfc39a7..e7cb3b2
fix for macro coding style.
Signed-off-by: Kumar Amit Mehta
---
drivers/staging/gdm72xx/wm_ioctl.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/gdm72xx/wm_ioctl.h
b/drivers/staging/gdm72xx/wm_ioctl.h
index 9f46e06..4ceecc4 100644
--- a/drivers/staging
50 matches
Mail list logo