eicon: make buffer larger
In diva_mnt_add_xdi_adapter() we do this: strcpy (clients[id].drvName, tmp); strcpy (clients[id].Dbg.drvName, tmp); The "clients[id].drvName" is a 128 character buffer and "clients[id].Dbg.drvName" was originally a 16 character buffer but I've changed it to 128 as well. We don't actually use 128 characters but we do use more than 16. I've also changed the size of "tmp" to 128 characters instead of 256. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
1f4f0f645c
Коммит
c2dddf9414
|
@ -862,7 +862,7 @@ void diva_mnt_add_xdi_adapter (const DESCRIPTOR* d) {
|
||||||
diva_os_spin_lock_magic_t old_irql, old_irql1;
|
diva_os_spin_lock_magic_t old_irql, old_irql1;
|
||||||
dword sec, usec, logical, serial, org_mask;
|
dword sec, usec, logical, serial, org_mask;
|
||||||
int id, best_id = 0, free_id = -1;
|
int id, best_id = 0, free_id = -1;
|
||||||
char tmp[256];
|
char tmp[128];
|
||||||
diva_dbg_entry_head_t* pmsg = NULL;
|
diva_dbg_entry_head_t* pmsg = NULL;
|
||||||
int len;
|
int len;
|
||||||
word size;
|
word size;
|
||||||
|
|
|
@ -249,7 +249,7 @@ typedef struct _DbgHandle_
|
||||||
} regTime ; /* timestamp for registration */
|
} regTime ; /* timestamp for registration */
|
||||||
void *pIrp ; /* ptr to pending i/o request */
|
void *pIrp ; /* ptr to pending i/o request */
|
||||||
unsigned long dbgMask ; /* current debug mask */
|
unsigned long dbgMask ; /* current debug mask */
|
||||||
char drvName[16] ; /* ASCII name of registered driver */
|
char drvName[128] ; /* ASCII name of registered driver */
|
||||||
char drvTag[64] ; /* revision string */
|
char drvTag[64] ; /* revision string */
|
||||||
DbgEnd dbg_end ; /* function for debug closing */
|
DbgEnd dbg_end ; /* function for debug closing */
|
||||||
DbgLog dbg_prt ; /* function for debug appending */
|
DbgLog dbg_prt ; /* function for debug appending */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче