mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* BUG? [PATCH] driver core: Add the ability to bind drivers to devices from userspace
@ 2005-08-17 23:43 Michal Ostrowski
  0 siblings, 0 replies; only message in thread
From: Michal Ostrowski @ 2005-08-17 23:43 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 626 bytes --]


If a driver's probe function returns -ENXIO or -ENODEV,
driver_probe_device() will translate that to return 0 (comments argue it
is not an error).

Consequently driver_bind() will return 0 resulting in the write
system-call that initiated all of this in returning 0 as well.

If one uses "echo" to write to a "bind" attribute, echo will
continuously call write() trying to write to the attribute and always
get 0 as a result and thus find itself in a loop trying to do the write.

Perhaps the translation of -ENZIO to -ENODEV to success in
driver_probe_device() is not approriate here?

-- 
Michal Ostrowski

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-17 23:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-17 23:43 BUG? [PATCH] driver core: Add the ability to bind drivers to devices from userspace Michal Ostrowski

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

all inboxes | Powered by JetHome®