lkml.org 
[lkml]   [1999]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectKernel stack corruption
I'm writeing a driver for connecting a A0 plotter.
The data I want to plot I write to the device through ioctl() commands.
Every time the transfer has completed I get
'release: plot kernel stack corruption. Aiee'
The ioctl call I added to a library wich contains

#define KIP5_IOCSETSBTSIZE _IO( KIP5_IOC_MAGIC, 1 )
#define KIP5_IOCSETSBTCODE _IOW( KIP5_IOC_MAGIC, 2,sizeof(PUCHAR) )

#define KIP5_IOCPLOT _IOWR( KIP5_IOC_MAGIC, 21, sizeof( TKip5KernelPacket ) )


int MyPlot( int fd, TKip5KernelPacket *p )
{
p->IO.Input.FunctionCode = KIP5_IOCPLOT;
return ioctl( fd, p->IO.Input.FunctionCode, p );
};
the same happens with KIP5_IOCSETSBTCODE functions.
Only calls like KIP5_IOCSETSBTSIZE where READ and WRITE flags are not set
returns without problems.

Can anyone tell me why this happens?

please CC to vgo@ratio.de

----------------------------------
E-Mail: vgo@Ratio.de
Date: 04-Feb-99
Time: 17:36:36
This message was sent by XFMail
----------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [from the cache]
©2003-2011 Jasper Spaans