mbox series

[v2,0/3] target: fix NULL pointer dereference

Message ID 1590099205-7997-1-git-send-email-sudhakar.panneerselvam@oracle.com (mailing list archive)
Headers show
Series target: fix NULL pointer dereference | expand

Message

Sudhakar Panneerselvam May 21, 2020, 10:13 p.m. UTC
The following set of commits address a NULL pointer dereference and some
refactoring around this issue.

v2:
 - new helper is named as target_cmd_init_cdb()
 - existing function, target_setup_cmd_from_cdb is renamed as
   target_cmd_parse_cdb()

Sudhakar Panneerselvam (3):
  target: factor out a new helper, target_cmd_init_cdb()
  target: fix NULL pointer dereference
  target: rename target_setup_cmd_from_cdb() to target_cmd_parse_cdb()

 drivers/target/iscsi/iscsi_target.c    | 21 +++++++++++++--------
 drivers/target/target_core_transport.c | 27 +++++++++++++++++++++------
 drivers/target/target_core_xcopy.c     |  5 ++++-
 include/target/target_core_fabric.h    |  3 ++-
 4 files changed, 40 insertions(+), 16 deletions(-)