public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] ACP Modem (Mwave)
@ 2001-07-18 16:02 Paul Schroeder
  2001-07-18 16:31 ` paulsch
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Schroeder @ 2001-07-18 16:02 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel, Mike Sullivan

Okay..  I cleaned things up...  I was more careful about the globals this
time...

Also...  The driver now builds as mwave.o instead of mwavedd.o...  The
driver now registers it's UART as a serial device (Thomas Hood)..  So there
is no need to run setserial anymore...

Cheers...Paul...


---
Paul B Schroeder  <paulsch@us.ibm.com>
Software Engineer, Linux Technology Center
IBM Corporation, Austin, TX


Alan Cox <alan@lxorguk.ukuu.org.uk> on 07/12/2001 02:55:00 PM

To:   Paul Schroeder/Austin/IBM@IBMUS
cc:   linux-kernel@vger.kernel.org, Mike Sullivan/Austin/IBM@IBMUS,
      alan@lxorguk.ukuu.org.uk (Alan Cox)
Subject:  Re: [PATCH] ACP Modem (Mwave)



> The patch has been updated...  The updates primarily consist of Alan's
> suggested changes below... (thank you)  It applies against the 2.4.6
> kernel...

A quick glance through it:

dsp3780I_WriteDStore still touches user space with a spinlock held
(also doesnt check the get_user return)

The ioctl handlers do not check copy_from_user/to_user returns

IOCTL_MW_UNREGISTER_IPC will oops if fed bogus info (ipcnum should be
unsigned)

The return should be -ENOTTY not -ENOIOCTLCMD  unless its internal code
that catches NOIOCTLCMD and changes it before user space sees it

mwave_Read should be -EINVAL not -ENOSYS (ENOSYS means the entire read
syscall
in the OS isnt there)

In debug mode mwave_write accesses user space directly and may crash
(buf[0])

Trivial item - coding style uses foo(void) not foo() to indicate functions
taking no arguments

Still have globals like "dspio" "uartio"  "ClaimResources" etc

whats wrong with tp3780_uart_io etc for globals ?

Otherwise it looks close to ready

Alan




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-07-18 19:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-18 16:02 [PATCH] ACP Modem (Mwave) Paul Schroeder
2001-07-18 16:31 ` paulsch
2001-07-18 17:22   ` Thomas Hood
2001-07-18 19:02     ` Robert Love
2001-07-18 17:27   ` [INFO] NNTP access to linux-kernel for Sympatico subscribers Thomas Hood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox