diff options
author | Jon Mason <jon.mason@intel.com> | 2013-07-15 13:23:47 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-13 12:08:12 +0900 |
commit | 7803b56d3b0d29a0231af3164dc7d3d9e86ded90 (patch) | |
tree | 13e457cc395e712addfd6925c964db330db1bfed /net/unix/sysctl_net_unix.c | |
parent | 24460c53b7f00ab1ba55e07377a0351175cf395a (diff) |
NTB: Add Error Handling in ntb_device_setup
commit 3b12a0d15bd1559e72ad21d9d807fd2a6706f0ab upstream.
If an error is encountered in ntb_device_setup, it is possible that the
spci_cmd isn't populated. Writes to the offset can result in a NULL
pointer dereference. This issue is easily encountered by running in
NTB-RP mode, as it currently is not supported and will generate an
error. To get around this issue, return if an error is encountered
prior to attempting to write to the spci_cmd offset.
Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions