bug report: ath6kl: use after free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vipin,

There is a use after free bug in ar6000_ioctl_set_channelParams().  I'm
not sure how to fix it.

drivers/staging/ath6kl/os/linux/ioctl.c +374
	ar6000_ioctl_set_channelParams(51) warn: 'cmdp' was already freed.
   370      if (cmd.numChannels > 1) {
   371          kfree(cmdp);
                      ^^^^
	freed here.

   372      }
   373
   374      ar->ap_wmode = cmdp->phyMode;
                           ^^^^^^
	dereferenced here.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux