]> git.hungrycats.org Git - linux/commit
[PATCH] Add error checking get_disk()
authorAndrew Morton <akpm@digeo.com>
Tue, 18 Mar 2003 05:20:37 +0000 (21:20 -0800)
committerDave Jones <davej@codemonkey.org.uk>
Tue, 18 Mar 2003 05:20:37 +0000 (21:20 -0800)
commitd99c48c60bc52561b3125dd1f85db7a77b7031ca
treea134f81043493985f150e038037a82c00a8974af
parent18f3cae294f90eb9a96fafcc1ffe2c1bb837f5a2
[PATCH] Add error checking get_disk()

Patch from Bob Miller <rem@osdl.org>

The get_disk() function should check the return value from kobject_get()
before passing it to to_disk().  This patch fixes this error.

(Acked by Pat)
drivers/block/genhd.c