Skip to content

Commit

Permalink
10645 sy: NULL pointer errors
Browse files Browse the repository at this point in the history
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed Apr 5, 2019
1 parent eae92bf commit a4ccb49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions usr/src/uts/common/io/gentty.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* All Rights Reserved */


/* from S5R4 1.22 */
Expand Down Expand Up @@ -78,7 +78,7 @@ struct cb_ops sy_cb_ops = {
syioctl, /* ioctl */
nodev, /* devmap */
nodev, /* mmap */
nodev, /* segmap */
nodev, /* segmap */
sypoll, /* poll */
ddi_prop_op, /* cb_prop_op */
0, /* streamtab */
Expand Down Expand Up @@ -150,7 +150,7 @@ static int
sy_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
{
if (ddi_create_minor_node(devi, "tty", S_IFCHR,
0, DDI_PSEUDO, NULL) == DDI_FAILURE) {
0, DDI_PSEUDO, 0) == DDI_FAILURE) {
ddi_remove_minor_node(devi, NULL);
return (-1);
}
Expand Down Expand Up @@ -301,7 +301,7 @@ sywrite(dev_t dev, struct uio *uiop, struct cred *cr)
/* ARGSUSED */
int
syioctl(dev_t dev, int cmd, intptr_t arg, int mode, struct cred *cr,
int *rvalp)
int *rvalp)
{
sess_t *sp;
int error;
Expand Down Expand Up @@ -337,7 +337,7 @@ syioctl(dev_t dev, int cmd, intptr_t arg, int mode, struct cred *cr,
/* ARGSUSED */
int
sypoll(dev_t dev, short events, int anyyet, short *reventsp,
struct pollhead **phpp)
struct pollhead **phpp)
{
sess_t *sp;
int error;
Expand Down

0 comments on commit a4ccb49

Please sign in to comment.