summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-05-02 11:30:28 +0200
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2009-05-06 22:48:37 +0200
commit94c7f2d49521b0bb3ab91cbeb3518ac34355d47f (patch)
treea2824d07c85cfc985811ff2237eb093e540b294f /fs/btrfs/root-tree.c
parentwimax: fix oops if netlink fails to add attribute (diff)
downloadlinux-94c7f2d49521b0bb3ab91cbeb3518ac34355d47f.tar.xz
linux-94c7f2d49521b0bb3ab91cbeb3518ac34355d47f.zip
wimax: oops: wimax_dev_add() is the only one that can initialize the state
When a new wimax_dev is created, it's state has to be __WIMAX_ST_NULL until wimax_dev_add() is succesfully called. This allows calls into the stack that happen before said time to be rejected. Until now, the state was being set (by mistake) to UNINITIALIZED, which was allowing calls such as wimax_report_rfkill_hw() to go through even when a call to wimax_dev_add() had failed; that was causing an oops when touching uninitialized data. This situation is normal when the device starts reporting state before the whole initialization has been completed. It just has to be dealt with. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
0 files changed, 0 insertions, 0 deletions