aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-07-19 08:53:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-24 15:23:38 -0700
commit2652c2163d781676284b2af494a97e64d65a5ee6 (patch)
tree4390f91feb8fea101269cccf9e2a4d6a7d6ad0cd /drivers/tty
parentLinux 3.11-rc2 (diff)
downloadlinux-dev-2652c2163d781676284b2af494a97e64d65a5ee6.tar.xz
linux-dev-2652c2163d781676284b2af494a97e64d65a5ee6.zip
TTY: snyclinkmp: calculating wrong addresses
This is a static checker fix and I don't have a way to test it. But from the context it looks like this is a typo where SCABUFSIZE was intended instead of sizeof(SCABUFSIZE). SCABUFSIZE is 1024 and sizeof(int) is 4. I would suspect this is a bad bug. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/synclinkmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c
index ff171384ea52..dc6e96996ead 100644
--- a/drivers/tty/synclinkmp.c
+++ b/drivers/tty/synclinkmp.c
@@ -3478,7 +3478,7 @@ static int alloc_buf_list(SLMP_INFO *info)
for ( i = 0; i < info->rx_buf_count; i++ ) {
/* calculate and store physical address of this buffer entry */
info->rx_buf_list_ex[i].phys_entry =
- info->buffer_list_phys + (i * sizeof(SCABUFSIZE));
+ info->buffer_list_phys + (i * SCABUFSIZE);
/* calculate and store physical address of */
/* next entry in cirular list of entries */