[2/3][PATCH][v2] TDM Framework

From
Greg KH <gregkh@linuxfoundation.org>
Date
2012-07-27 18:12:13
Also in
linuxppc-dev, lkml
Reply to
unknown sender, 2012-07-27
On Fri, Jul 27, 2012 at 07:35:38PM +0530, sandeep at freescale.com wrote:
quoted hunk ↗ jump to hunk
+static struct kobj_type tdm_type = {
+	.sysfs_ops = &tdm_ops,
+	.default_attrs = tdm_attr,
+};
Ah, also, as per the documentation in the kernel (go look, it's there),
I now get to publicly mock you for ignoring the error messages that
the kernel is giving you when you try to shut down your code path.

Well, to be fair, you are leaking memory like a sieve, so I doubt you
ever saw those error messages because you never cleaned up after
yourself, so perhaps I can forgive you, but your users can't, sorry.
They like to rely on the fact that Linux is a reliable operating system,
don't cause them to doubt that.

Please fix this code, it's horribly broken.  Read
Documentation/kobject.txt for why.  That file was written for a reason,
and not just because we like writing documentation (hint, we hate to...)

Ugh,

greg k-h
Thread (22 messages) 22 messages, 9 authors, last reply 2012-08-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help