]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
fs: fix name overwrite in __register_chrdev_region()
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 6 Jan 2009 22:41:08 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:13 +0000 (15:59 -0800)
commit8c4018884a49eb2c6c7ca90804f331b12983561c
tree5a9b972e76c340db5feebda40d9643611a1b84d2
parentba84be2338d3a2b6020d39279335bb06fcd332e1
fs: fix name overwrite in __register_chrdev_region()

It's possible to register a chrdev with a name size exactly the same as
was allocated in structure.  It seems it was not intended behaviour.

At least chrdev_show does not like it.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/char_dev.c